Last change
on this file since 6106 was
6106,
checked in by bwuest, 18 years ago
|
Converter.h and Converter.cc added; Note: They don't function for negative numbers
|
File size:
1.0 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file entity_manager.h |
---|
3 | * Manages creation and destruction of entities |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _ENTITY_MANGER |
---|
7 | #define _ENTITY_MANAGER |
---|
8 | |
---|
9 | /* include this file, it contains some default definitions */ |
---|
10 | #include "netdefs.h" |
---|
11 | |
---|
12 | /* include synchronizeable.h since this class is derived from this one */ |
---|
13 | #include "synchronizeable.h" |
---|
14 | |
---|
15 | /*! |
---|
16 | * a class that can create and remove entities |
---|
17 | */ |
---|
18 | class EntityManager: public Synchronizeable |
---|
19 | { |
---|
20 | public: |
---|
21 | EntityManager(); |
---|
22 | ~EntityManager(); |
---|
23 | |
---|
24 | virtual void writeBytes(const byte* data, int length); |
---|
25 | virtual int readBytes(byte* data, int maxLength, int * reciever); |
---|
26 | virtual void writeDebug() const; |
---|
27 | virtual void readDebug() const; |
---|
28 | |
---|
29 | void createEntity(int classID); |
---|
30 | void removeEntity(int uniqueID); |
---|
31 | |
---|
32 | private: |
---|
33 | void requestCreateEntity(int classID); |
---|
34 | void requestRemoveEntity(int uniqueID); |
---|
35 | |
---|
36 | void executeCreateEntity(int classID); |
---|
37 | void executeRemoveEntity(int uniqueID); |
---|
38 | |
---|
39 | bool canCreateEntity(int classID); |
---|
40 | }; |
---|
41 | |
---|
42 | #endif /*_ENTITY_MANGER*/ |
---|
Note: See
TracBrowser
for help on using the repository browser.