Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SharedClass.hpp
Go to the documentation of this file.
1 #pragma once
4 
7 {
8 public:
11 };
12 
13 namespace inexor { namespace rendering {
14 
15 class player : public SharedClass
16 {
17 public:
18  player() : kills(0), deaths(0)
19  {
20  }
22  :
23  kills(0)
24  , deaths(0)
25  {
26  }
27 
28  player(const char *alpha);
29  player(const player &old) : kills(old.kills), deaths(old.deaths) // TODO: TELL PEOPLE THIS IS REQUIRED
30  { }
32  {
33  return player(a);
34  }
35 
38  //class weapon : public SharedClass
39  //{
40  //public:
41  // weapon() : ammo(0) {}
42  // SharedVar<int> ammo;
43  //};
45  //weapon mainweapon;
46 };
47 } } // ns inexor::rendering
player()
Definition: SharedClass.hpp:18
Definition: SharedClass.hpp:15
SharedClass()
Definition: SharedClass.hpp:9
SharedVar< int > deaths
Definition: SharedClass.hpp:37
player operator=(const player &a)
Definition: SharedClass.hpp:31
player(const player &old)
Definition: SharedClass.hpp:29
All classes deriving from this class get detected by our reflection system InexorGlueGen.
Definition: SharedClass.hpp:6
player(int kills)
Definition: SharedClass.hpp:21
SharedVar wrapper for primitive/immutable objects.
Definition: SharedVar.hpp:55
SharedVar< int > kills
Definition: SharedClass.hpp:36
Definition: SharedOptions.hpp:6
SharedClass(SharedOption p)
Definition: SharedClass.hpp:10