3è itération
[PACMAN.git] / gameplay / movment.cpp
blob259ba6b968ff3c5c5ac1841152a9e3bf1d7142cb
1 #include "movment.h"
2 #include "../engines/engine_physics.h"
4 namespace gameplay
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);