]>
Commit | Line | Data |
---|---|---|
3ab6f12a | 1 | #include <GameServ/GameLayer/GameObjects/LevelGO.h>\r |
2 | using GameServ::GameLayer::GameObjects::LevelGO;\r | |
3 | \r | |
4 | #include <GameServ/Types.h>\r | |
5 | using GameServ::Types::ObjectTypes;\r | |
6 | \r | |
7 | #include <vector>\r | |
8 | using std::vector;\r | |
9 | \r | |
10 | #include <string>\r | |
11 | using std::string;\r | |
12 | \r | |
13 | LevelGO::LevelGO() : GameObject()\r | |
14 | {\r | |
15 | }\r | |
16 | \r | |
17 | LevelGO::LevelGO(const string &Id) : GameObject(Id)\r | |
18 | {\r | |
19 | }\r | |
20 | \r | |
21 | LevelGO::~LevelGO()\r | |
22 | {\r | |
3ab6f12a | 23 | }\r |
24 | \r | |
25 | bool LevelGO::operator ==(const LevelGO &right) const\r | |
26 | {\r | |
04a66a14 | 27 | return right.mspMaster == mspMaster;\r |
3ab6f12a | 28 | }\r |
29 | \r | |
30 | bool LevelGO::operator !=(const LevelGO &right) const\r | |
31 | {\r | |
32 | return !(operator==(right));\r | |
33 | }\r | |
34 | \r | |
35 | LevelGO *LevelGO::Clone(void) const\r | |
36 | {\r | |
37 | return new LevelGO(*this);\r | |
38 | }\r | |
39 | \r | |
40 | ObjectTypes::ObjectType LevelGO::ObjectType(void) const\r | |
41 | {\r | |
42 | return ObjectTypes::Level;\r | |
43 | }\r | |
44 | \r | |
3ab6f12a | 45 | void LevelGO::Master(shared_ptr<MasterGO> spMaster)\r |
46 | {\r | |
47 | mspMaster = spMaster;\r | |
48 | }\r | |
49 | \r | |
50 | shared_ptr<MasterGO> LevelGO::Master(void) const\r | |
51 | {\r | |
52 | return mspMaster;\r | |
53 | }\r | |
54 | \r | |
55 | \r | |
56 | \r |