Emergency 20 Dokumentation  4.2.0
DamagedEntityCleanup.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  //[-------------------------------------------------------]
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public definitions ]
36  //[-------------------------------------------------------]
37  public:
38  static const uint32 GAMELOGIC_TYPE_ID; // "em5::DamagedEntityCleanup" game logic type ID
39 
40  typedef Cleanup::CleanupResult CleanupResult; // just a shortcut
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
48 
49 
50  //[-------------------------------------------------------]
51  //[ Protected virtual em5::Cleanup methods ]
52  //[-------------------------------------------------------]
53  protected:
54  virtual CleanupResult onReadyForCleanupCheap() const override;
55  virtual ExecuteResult onExecuteCleanup() override;
56 
57 
58  //[-------------------------------------------------------]
59  //[ CAMP reflection system ]
60  //[-------------------------------------------------------]
61  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
62 
63 
64  };
65 
66 
67 //[-------------------------------------------------------]
68 //[ Namespace ]
69 //[-------------------------------------------------------]
70 } // em5
71 
72 
73 //[-------------------------------------------------------]
74 //[ CAMP reflection system ]
75 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Cleanup::CleanupResult CleanupResult
Definition: DamagedEntityCleanup.h:40
unsigned int uint32
Definition: PlatformTypes.h:181
CleanupResult
Definition: Cleanup.h:45
ExecuteResult
Definition: Cleanup.h:52
#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
Cleanup for any entity with a damage component.
Definition: DamagedEntityCleanup.h:30
Cleanup base class.
Definition: Cleanup.h:37
static const uint32 GAMELOGIC_TYPE_ID
Definition: DamagedEntityCleanup.h:38