]>
Commit | Line | Data |
---|---|---|
1 | #ifndef __GS__ITEM_H__\r | |
2 | #define __GS__ITEM_H__\r | |
3 | #include <GameServ/GameLayer/GameObjects/GameObject.h>\r | |
4 | using GameServ::GameLayer::GameObjects::GameObject;\r | |
5 | #include <GameServ/Types.h>\r | |
6 | using GameServ::Types::ItemTypes;\r | |
7 | \r | |
8 | #include <string>\r | |
9 | using std::string;\r | |
10 | #include <vector>\r | |
11 | using std::vector;\r | |
12 | \r | |
13 | namespace GameServ { namespace GameLayer { namespace GameObjects {\r | |
14 | \r | |
15 | class ItemGO : public GameObject\r | |
16 | {\r | |
17 | public:\r | |
18 | ItemGO();\r | |
19 | ItemGO(const string &name, const unsigned long int &price, const int &uses, const vector<string> &modifiers);\r | |
20 | virtual ~ItemGO();\r | |
21 | \r | |
22 | //! Property get - Name\r | |
23 | string Name(void) const;\r | |
24 | //! Property set - Name\r | |
25 | void Name(const string &value);\r | |
26 | \r | |
27 | //! Property get - Price\r | |
28 | unsigned long int Price(void) const;\r | |
29 | //! Property set - Price\r | |
30 | void Price(const unsigned long int &value);\r | |
31 | \r | |
32 | //! Property get - Uses\r | |
33 | int Uses(void) const;\r | |
34 | //! Property set - Uses\r | |
35 | void Uses(const int &value);\r | |
36 | \r | |
37 | //! Property get - Item Type\r | |
38 | ItemTypes::ItemType Type(void) const;\r | |
39 | \r | |
40 | //! Property set - Item Type\r | |
41 | void Type(const ItemTypes::ItemType &value);\r | |
42 | \r | |
43 | //! Property get - Modifiers\r | |
44 | vector<string> Modifiers(void) const;\r | |
45 | //! Property set - Modifiers\r | |
46 | void Modifiers(const vector<string> &value);\r | |
47 | \r | |
48 | virtual ItemGO *Clone(void) const;\r | |
49 | \r | |
50 | protected:\r | |
51 | string mName;\r | |
52 | unsigned long int mPrice;\r | |
53 | int mUses;\r | |
54 | ItemTypes::ItemType mType;\r | |
55 | vector<string> mModifiers;\r | |
56 | };\r | |
57 | }}}\r | |
58 | #endif |