blob: 1bcf05ed1484af9496acaa329514d43c39c823d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef USER_MOVEMENT_H
#define USER_MOVEMENT_H
#include "entity.h"
class Game;
class UserMovementComponent : public Component {
public:
void input(Game& game, Entity& entity, int key, int action);
void receive(Game&, Entity&, const Message& msg);
private:
bool holdingLeft = false;
bool holdingRight = false;
bool frozen = false;
};
#endif
|