TDME2  1.9.200
Logic.cpp
Go to the documentation of this file.
2 
3 #include <tdme/tdme.h>
5 
7 
9 
10 Logic::Logic(Context* context, const string& id, bool handlingHIDInput) {
11  this->context = context;
12  this->id = id;
13  this->handlingHIDInput = handlingHIDInput;
14 }
15 
17 }
18 
19 void Logic::handleHIDEvents(vector<GUIMouseEvent>& mouseEvents, vector<GUIKeyboardEvent>& keyEvents) {
20  // no op
21 }
22 
24  // no op
25 }
26 
28  // no op
29 }
30 
31 void Logic::logState(int indent) {
32  for (auto i = 0; i < indent; i++) Console::print("\t");
33  Console::println(id + ": no state reported");
34 }
virtual void onLogicAdded()
On logic added.
Definition: Logic.cpp:23
virtual ~Logic()
Destructor.
Definition: Logic.cpp:16
virtual void onLogicsProcessed()
On logics processed.
Definition: Logic.cpp:27
virtual void logState(int indent=0)
Log state.
Definition: Logic.cpp:31
virtual void handleHIDEvents(vector< GUIMouseEvent > &mouseEvents, vector< GUIKeyboardEvent > &keyEvents)
Handle HID events.
Definition: Logic.cpp:19
Console class.
Definition: Console.h:29