#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 | 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 | _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 34 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 Player::control(), and startTimestep().  | 
  
      
  | 
  
| 
 
 Definition at line 87 of file CommandManager.cpp. References _instance, and CommandManager(). Referenced by EventPoint::collide(), Player::control(), and PlayScriptCommand::execute().  | 
  
      
  | 
  
| 
 
 Definition at line 107 of file CommandManager.cpp. References _demoCommands, and Parser::open.  | 
  
      
  | 
  
| 
 
 Definition at line 74 of file CommandManager.cpp. References Parser::parse(), and startPlaying().  | 
  
      
  | 
  
| 
 
 Definition at line 56 of file CommandManager.cpp. References List::empty(), List::firstList(), List::firstString(), Command::loadCommand(), and List::rest().  | 
  
      
  | 
  
| 
 
 Definition at line 42 of file CommandManager.cpp. References _playCommands, _playing, and _playTime. Referenced by EventPoint::collide(), PlayScriptCommand::execute(), and startPlaying().  | 
  
      
  | 
  
| 
 
 Definition at line 95 of file CommandManager.cpp. References _demoCommands, _demoTime, and _recording.  | 
  
      
  | 
  
| 
 
 Definition at line 120 of file CommandManager.cpp. References _demoTime, _playCommands, _playing, _playTime, _recording, CommandTime::c, execute(), and CommandTime::time.  | 
  
      
  | 
  
| 
 
 Definition at line 82 of file CommandManager.cpp. References _playing.  | 
  
      
  | 
  
| 
 
 Definition at line 102 of file CommandManager.cpp. References _recording.  | 
  
      
  | 
  
| 
 
 Definition at line 40 of file CommandManager.h. Referenced by execute(), saveRecording(), and startRecording().  | 
  
      
  | 
  
| 
 
 Definition at line 48 of file CommandManager.h. Referenced by execute(), startRecording(), and startTimestep().  | 
  
      
  | 
  
| 
 
 Definition at line 46 of file CommandManager.h. Referenced by CommandManager(), and instance().  | 
  
      
  | 
  
| 
 
 Definition at line 41 of file CommandManager.h. Referenced by startPlaying(), and startTimestep().  | 
  
      
  | 
  
| 
 
 Definition at line 44 of file CommandManager.h. Referenced by startPlaying(), startTimestep(), and stopPlaying().  | 
  
      
  | 
  
| 
 
 Definition at line 49 of file CommandManager.h. Referenced by startPlaying(), and startTimestep().  | 
  
      
  | 
  
| 
 
 Definition at line 43 of file CommandManager.h. Referenced by execute(), startRecording(), startTimestep(), and stopRecording().  | 
  
 1.4.6-NO