Emergency 20 Dokumentation  4.2.0
CommandDelegate-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
15  {
16  // Nothing here
17  }
18 
19 
20  //[-------------------------------------------------------]
21  //[ Public virtual em5::CommandDelegate methods ]
22  //[-------------------------------------------------------]
24  {
25  // Default implementation: No filtering
26  return true;
27  }
28 
30  {
31  // Default implementation: No filtering
32  return true;
33  }
34 
35 
36 //[-------------------------------------------------------]
37 //[ Namespace ]
38 //[-------------------------------------------------------]
39 } // em5
Definition: ActionPriority.h:13
virtual bool isCommandAllowed(const qsf::game::Command &command) override
Callback to determine whether a certain commands is currently allowed to be checked and executed...
Definition: CommandDelegate-inl.h:29
virtual ~CommandDelegate()
Destructor.
Definition: CommandDelegate-inl.h:14
virtual bool areCommandsAllowed() override
Callback to determine whether commands are currently allowed at all.
Definition: CommandDelegate-inl.h:23
Abstract command base class.
Definition: Command.h:50