mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
42 lines
707 B
C++
42 lines
707 B
C++
#pragma once
|
|
#include "MobsCorpACorp.h"
|
|
#include "MobsIA.h"
|
|
#include <CircleShape2D.hpp>
|
|
#include <CollisionShape2D.hpp>
|
|
#include <Sprite.hpp>
|
|
#include "MobsCorpACorp.h"
|
|
#include <Godot.hpp>
|
|
#include <KinematicBody2D.hpp>
|
|
|
|
using namespace godot;
|
|
|
|
class MobsIA : public KinematicBody2D
|
|
{
|
|
public:
|
|
Sprite* sprite_MobsCorpACorp_ptr;
|
|
CollisionShape2D* collision_MobsCorpACorp_ptr;
|
|
|
|
Ref<Resource> texture_MobsCorpACorp_ptr;
|
|
Ref<CircleShape2D> shape_MobsCorpACorp_ptr;
|
|
|
|
private:
|
|
GODOT_CLASS(MobsIA, KinematicBody2D)
|
|
|
|
|
|
public:
|
|
MobsIA();
|
|
|
|
void static _register_methods();
|
|
virtual void _process(float delta);
|
|
virtual void _init();
|
|
virtual void _ready();
|
|
|
|
|
|
|
|
|
|
private:
|
|
Vector2 velocity;
|
|
Vector2 FLOOR;
|
|
};
|
|
|