summary refs log tree commit diff stats
path: root/src/party.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 09:41:31 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 09:41:31 -0500
commit410f971972bde37fb852420ea2ca0e2f69f27256 (patch)
tree73262614d4688e4f9a26c97557db5720b049029e /src/party.h
parent78e5bd2e622204d0deab252d9b2ab90c3095b67d (diff)
downloadtanetane-410f971972bde37fb852420ea2ca0e2f69f27256.tar.gz
tanetane-410f971972bde37fb852420ea2ca0e2f69f27256.tar.bz2
tanetane-410f971972bde37fb852420ea2ca0e2f69f27256.zip
Encapsulated some player movement stuff
Imported vector from therapy5
Diffstat (limited to 'src/party.h')
-rw-r--r--src/party.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/party.h b/src/party.h new file mode 100644 index 0000000..18c57b5 --- /dev/null +++ b/src/party.h
@@ -0,0 +1,23 @@
1#ifndef PARTY_H_826F91BA
2#define PARTY_H_826F91BA
3
4#include <vector>
5#include "game.h"
6
7class Party {
8public:
9
10 void addMember(int spriteId);
11
12 void move(Game& game, const Input& keystate);
13
14private:
15
16 struct PartyMember {
17 int spriteId;
18 };
19
20 std::vector<PartyMember> members_;
21};
22
23#endif /* end of include guard: PARTY_H_826F91BA */