add movement.*
This commit is contained in:
parent
5af648f6c0
commit
3854633a19
@ -23,10 +23,6 @@ class Bullet : public Entity
|
||||
Vector2D born_pos;
|
||||
Vector2D born_dir;
|
||||
float fly_distance = 0.0f;
|
||||
#ifdef RAY_DETECTION
|
||||
float target_distance = 0.0f;
|
||||
Vector2D target_point;
|
||||
#endif
|
||||
|
||||
Bullet();
|
||||
virtual ~Bullet() override;
|
||||
@ -50,5 +46,4 @@ class Bullet : public Entity
|
||||
|
||||
private:
|
||||
CircleCollider* self_collider_ = nullptr;
|
||||
|
||||
};
|
||||
|
0
server/gameserver/movement.cc
Normal file
0
server/gameserver/movement.cc
Normal file
14
server/gameserver/movement.h
Normal file
14
server/gameserver/movement.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
class Entity;
|
||||
class MovementComponent
|
||||
{
|
||||
public:
|
||||
Entity* owner = nullptr;
|
||||
#ifdef RAY_DETECTION
|
||||
float target_distance = 0.0f;
|
||||
Vector2D target_point;
|
||||
std::set<Entity*> detection_objects;
|
||||
#endif
|
||||
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user