Emergency 20 Dokumentation  4.2.0
TargetFoundCounterComponent.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 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
34  {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Public definitions ]
39  //[-------------------------------------------------------]
40  public:
41  static const uint32 COMPONENT_ID;
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
55  explicit TargetFoundCounterComponent(qsf::Prototype* prototype);
56 
62 
63  int getNumber() const;
64  void increaseNumber();
65 
66 
67  //[-------------------------------------------------------]
68  //[ Private data ]
69  //[-------------------------------------------------------]
70  private:
71  int mNumberFoundTargets;
72 
73 
74  //[-------------------------------------------------------]
75  //[ CAMP reflection system ]
76  //[-------------------------------------------------------]
77  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
78 
79 
80  };
81 
82 
83 //[-------------------------------------------------------]
84 //[ Namespace ]
85 //[-------------------------------------------------------]
86 } // em5
87 
88 
89 //[-------------------------------------------------------]
90 //[ CAMP reflection system ]
91 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Abstract component class.
Definition: Component.h:105
unsigned int uint32
Definition: PlatformTypes.h:181
EMERGENCY 5 target found counter component (e.g. from rescue dog)
Definition: TargetFoundCounterComponent.h:33
virtual ~TargetFoundCounterComponent()
Destructor.
TargetFoundCounterComponent(qsf::Prototype *prototype)
Constructor.
#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
static const uint32 COMPONENT_ID
"em5::TargetFoundCounterComponent" unique component ID
Definition: TargetFoundCounterComponent.h:41
Prototype class.
Definition: Prototype.h:100