Emergency 20 Dokumentation  4.2.0
CommandContext.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 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23  class Player;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public definitions ]
47  //[-------------------------------------------------------]
48  public:
50  {
52  EVALUATIONREASON_SHOWCOMMAND_CURSOR, // Show an info which command can be executed on an entity under the mouse cursor (changes the mouse cursor)
53  EVALUATIONREASON_SHOWCOMMAND_ABOVE_ENTITY // Show an info which command can be executed on an entity (an icon is shown "above" the entity)
54  };
55 
56 
57  //[-------------------------------------------------------]
58  //[ Public methods ]
59  //[-------------------------------------------------------]
60  public:
65  inline CommandContext();
66 
71  inline virtual ~CommandContext();
72 
73 
74  //[-------------------------------------------------------]
75  //[ Public data ]
76  //[-------------------------------------------------------]
77  public:
81 
82 
83  };
84 
85 
86 //[-------------------------------------------------------]
87 //[ Namespace ]
88 //[-------------------------------------------------------]
89 } // em5
90 
91 
92 //[-------------------------------------------------------]
93 //[ Implementation ]
94 //[-------------------------------------------------------]
96 
97 
98 //[-------------------------------------------------------]
99 //[ CAMP reflection system ]
100 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
#define EM5_API_EXPORT
Definition: Export.h:28
#define QSF_CAMP_TYPE(type)
See "CAMP_TYPE" for details.
Definition: CampClass.h:87
EMERGENCY 5 player class.
Definition: Player.h:57
bool mIsAutomatism
"true" if command is pushed by automatism, not by player direct
Definition: CommandContext.h:79
EvaluationReason mEvaluationReason
Indicates the reason for an evaluation of an command.
Definition: CommandContext.h:80
Player * mPlayer
Player issuing the command; always valid, do not destroy.
Definition: CommandContext.h:78
EMERGENCY 5 command context class.
Definition: CommandContext.h:41
Definition: CommandContext.h:51
EvaluationReason
Definition: CommandContext.h:49
Command context base class.
Definition: CommandContext.h:48