#include <CommandManager.h>
Public Member Functions | |
| void | startRecording () |
| void | stopRecording () |
| void | saveRecording (std::string filename) |
| void | startPlaying (std::priority_queue< CommandTime, std::vector< CommandTime >, std::greater< CommandTime > > &commands) |
| void | startPlaying (List *commands) |
| void | startPlaying (std::string filename) |
| void | stopPlaying () |
| void | startTimestep () |
| void | flush () |
| void | execute (Command *command) |
| void | execute (std::queue< Command * > commands) |
Static Public Member Functions | |
| static CommandManager * | instance () |
Private Member Functions | |
| CommandManager () | |
Private Attributes | |
| std::priority_queue< CommandTime, std::vector< CommandTime >, std::greater< CommandTime > > | _demoCommands |
| std::priority_queue< CommandTime, std::vector< CommandTime >, std::greater< CommandTime > > | _playCommands |
| bool | _flush |
| bool | _recording |
| bool | _playing |
| int | _demoTime |
| int | _playTime |
Static Private Attributes | |
| static CommandManager * | _instance = NULL |
Definition at line 20 of file CommandManager.h.
|
|
Definition at line 16 of file CommandManager.cpp. References _instance. Referenced by instance(). |
|
|
Definition at line 36 of file CommandManager.cpp. |
|
|
Definition at line 22 of file CommandManager.cpp. References _demoCommands, _demoTime, _recording, CommandTime::c, Command::execute(), and CommandTime::time. Referenced by Person::addHealth(), Player::control(), and WeaponPunch::shoot(). |
|
|
Definition at line 122 of file CommandManager.cpp. References _flush. Referenced by CutScene::activate(), FlushCommand::execute(), and Level::~Level(). |
|
|
Definition at line 89 of file CommandManager.cpp. References _instance, and CommandManager(). Referenced by CutScene::activate(), Person::addHealth(), EventPoint::collide(), Player::control(), Enemy::die(), PlayScriptCommand::execute(), FlushCommand::execute(), WeaponPunch::shoot(), Enemy::update(), and Level::~Level(). |
|
|
Definition at line 109 of file CommandManager.cpp. References _demoCommands, and Parser::open. Referenced by Player::control(). |
|
|
Definition at line 76 of file CommandManager.cpp. References Parser::parse(), and startPlaying(). |
|
|
Definition at line 58 of file CommandManager.cpp. References List::empty(), List::firstList(), List::firstString(), Command::loadCommand(), and List::rest(). |
|
|
Definition at line 44 of file CommandManager.cpp. References _playCommands, _playing, and _playTime. Referenced by EventPoint::collide(), Enemy::die(), PlayScriptCommand::execute(), startPlaying(), and Enemy::update(). |
|
|
Definition at line 97 of file CommandManager.cpp. References _demoCommands, _demoTime, and _recording. Referenced by Player::control(). |
|
|
Definition at line 127 of file CommandManager.cpp. References _flush, _playCommands, and _playing. |
|
|
Definition at line 84 of file CommandManager.cpp. References _playing. |
|
|
Definition at line 104 of file CommandManager.cpp. References _recording. Referenced by Player::control(). |
|
|
Definition at line 42 of file CommandManager.h. Referenced by execute(), saveRecording(), and startRecording(). |
|
|
Definition at line 51 of file CommandManager.h. Referenced by execute(), and startRecording(). |
|
|
Definition at line 45 of file CommandManager.h. Referenced by flush(), and startTimestep(). |
|
|
Definition at line 49 of file CommandManager.h. Referenced by CommandManager(), and instance(). |
|
|
Definition at line 43 of file CommandManager.h. Referenced by startPlaying(), and startTimestep(). |
|
|
Definition at line 47 of file CommandManager.h. Referenced by startPlaying(), startTimestep(), and stopPlaying(). |
|
|
Definition at line 52 of file CommandManager.h. Referenced by startPlaying(). |
|
|
Definition at line 46 of file CommandManager.h. Referenced by execute(), startRecording(), and stopRecording(). |
1.4.6-NO