blob: 06f86397c28bb3e8e0c39395b09588d3285aaaa9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef PARTY_H_826F91BA
#define PARTY_H_826F91BA
#include <deque>
#include <vector>
#include "game.h"
class Party {
public:
void addMember(Game& game, int spriteId);
void move(Game& game, const Input& keystate);
void beginCrouch(Game& game);
void endCrouch(Game& game);
private:
enum class State {
Normal,
Crouching,
Running
};
struct Movement {
vec2i pos;
Direction dir;
};
struct PartyMember {
int spriteId;
std::deque<Movement> movement;
};
std::vector<PartyMember> members_;
State state_ = State::Normal;
Direction lastDir_;
};
#endif /* end of include guard: PARTY_H_826F91BA */
|