Emergency 20 Dokumentation  4.2.0
CivilistSpawnPointComponent.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Namespace ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23 
24 
25  //[-------------------------------------------------------]
26  //[ Classes ]
27  //[-------------------------------------------------------]
33  {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Public definitions ]
38  //[-------------------------------------------------------]
39  public:
40  static const uint32 COMPONENT_ID;
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
51  inline virtual ~CivilistSpawnPointComponent();
52 
53  // Spawn pools
54  std::string getSpawnPoolsAsString() const;
55  void setSpawnPoolsAsString(const std::string& spawnPools);
56 
57  // Spawn group
58  inline uint32 getSpawnGroupId() const;
59  inline const std::string& getSpawnGroupName() const;
60  void setSpawnGroupByName(const std::string& spawnGroupName);
61 
62  // Spawn point tag
63  inline uint32 getTagHash() const;
64  inline const std::string& getTag() const;
65  void setTag(const std::string& tag);
66 
67 
68  //[-------------------------------------------------------]
69  //[ Protected methods ]
70  //[-------------------------------------------------------]
71  protected:
79  inline explicit CivilistSpawnPointComponent(qsf::Prototype* prototype);
80 
81 
82  //[-------------------------------------------------------]
83  //[ Protected data ]
84  //[-------------------------------------------------------]
85  protected:
88 
89 
90  //[-------------------------------------------------------]
91  //[ CAMP reflection system ]
92  //[-------------------------------------------------------]
93  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
94 
95 
96  };
97 
98 
99 //[-------------------------------------------------------]
100 //[ Namespace ]
101 //[-------------------------------------------------------]
102 } // em5
103 
104 
105 //[-------------------------------------------------------]
106 //[ Implementation ]
107 //[-------------------------------------------------------]
109 
110 
111 //[-------------------------------------------------------]
112 //[ CAMP reflection system ]
113 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
static const uint32 COMPONENT_ID
"em5::CivilistSpawnPointComponent" unique component ID
Definition: CivilistSpawnPointComponent.h:40
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
EMERGENCY 5 entities can spawn from this point. It has a list of valid entities which can spawn from ...
Definition: SpawnPointComponent.h:49
qsf::NamedIdentifier mTag
Definition: CivilistSpawnPointComponent.h:87
EMERGENCY 5 civilist spawn point component base class.
Definition: CivilistSpawnPointComponent.h:32
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
qsf::NamedIdentifier mSpawnGroup
Definition: CivilistSpawnPointComponent.h:86
Prototype class.
Definition: Prototype.h:100