Changeset 17fceea for src/Actions/ActionQueue.cpp
- Timestamp:
- Sep 13, 2017, 5:19:58 PM (8 years ago)
- Children:
- 15acdb
- Parents:
- ab3827
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Actions/ActionQueue.cpp ¶
rab3827 r17fceea 52 52 #include "Actions/ActionHistory.hpp" 53 53 #include "Actions/ActionRegistry.hpp" 54 #include "Actions/MakroAction.hpp" 55 #include "Actions/Process.hpp" 54 56 #include "World.hpp" 55 57 … … 160 162 bool status = (CurrentAction == actionqueue.size()); 161 163 return status; 164 } 165 166 bool ActionQueue::isProcess() const 167 { 168 if (isIdle()) 169 return false; 170 const Process *possibleprocess = dynamic_cast<const Process *>(&getCurrentAction()); 171 if (possibleprocess == NULL) 172 return false; 173 else 174 return true; 175 } 176 177 bool ActionQueue::isMakroAction() const 178 { 179 if (isIdle()) 180 return false; 181 const MakroAction *possiblemakroaction = dynamic_cast<const MakroAction *>(&getCurrentAction()); 182 if (possiblemakroaction == NULL) 183 return false; 184 else 185 return true; 186 } 187 188 const Action& ActionQueue::getCurrentAction() const 189 { 190 return *const_cast<const Action *>(actionqueue[CurrentAction]); 162 191 } 163 192
Note:
See TracChangeset
for help on using the changeset viewer.