diff options
Diffstat (limited to 'src/systems/realizing.h')
-rw-r--r-- | src/systems/realizing.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/systems/realizing.h b/src/systems/realizing.h new file mode 100644 index 0000000..c681892 --- /dev/null +++ b/src/systems/realizing.h | |||
@@ -0,0 +1,43 @@ | |||
1 | #ifndef REALIZING_H_6853748C | ||
2 | #define REALIZING_H_6853748C | ||
3 | |||
4 | #include "system.h" | ||
5 | |||
6 | class RealizingSystem : public System { | ||
7 | public: | ||
8 | |||
9 | RealizingSystem(Game& game) : System(game) | ||
10 | { | ||
11 | } | ||
12 | |||
13 | /** | ||
14 | * Creates the singleton realizable entity and initializes it with the | ||
15 | * provided world definition. | ||
16 | */ | ||
17 | id_type initSingleton(std::string filename); | ||
18 | |||
19 | /** | ||
20 | * Helper method that returns the entity ID of the (assumed) singleton entity | ||
21 | * with a RealizableComponent. Throws an exception if the number of realizable | ||
22 | * entities is not exactly one. | ||
23 | */ | ||
24 | id_type getSingleton() const; | ||
25 | |||
26 | /** | ||
27 | * Loads the given map. | ||
28 | */ | ||
29 | void loadMap(id_type mapEntity); | ||
30 | |||
31 | /** | ||
32 | * Treats the given entity as part of the active map. | ||
33 | */ | ||
34 | void enterActiveMap(id_type entity); | ||
35 | |||
36 | /** | ||
37 | * Stops treating the given entity as part of the active map. | ||
38 | */ | ||
39 | void leaveActiveMap(id_type entity); | ||
40 | |||
41 | }; | ||
42 | |||
43 | #endif /* end of include guard: REALIZING_H_6853748C */ | ||