2 #include "../engines/engine_physics.h"
6 void Movment::move_north(Entity entity
)
8 Point to
= entity
.get_pos() + Point(-1, 0);
9 Engine_physics::move_entity(entity
, to
);
11 void Movment::move_south(Entity entity
)
13 Point to
= entity
.get_pos() + Point(1, 0);
14 Engine_physics::move_entity(entity
, to
);
16 void Movment::move_east(Entity entity
)
18 Point to
= entity
.get_pos() + Point(0, 1);
19 Engine_physics::move_entity(entity
, to
);
21 void Movment::move_west(Entity entity
)
23 Point to
= entity
.get_pos() + Point(0, -1);
24 Engine_physics::move_entity(entity
, to
);