176 LOG_D(
"Shutting down System")
212 LOG_D(
"Event Traversal")
229 LOG_D(
"Post Event Traversal")
263 LOG_D(
"Camera Synch")
328 mSysMan->RemoveMarkedEntities();
virtual void DecrementTimeScale()
Decrement the system time scale.
A timing structure for all sim loop variables.
static const SystemControls PAUSE
Pauses the system.
virtual void CheckForShutdown()
Checks for a shutdown, and cleares the System Manager if in process.
virtual void Frame(const trManager::TimingStructure &timeStruct)
Frame event function.
A message that is sent out on Frame Synchronization.
A message that is sent out on Camera Synchronization.
virtual const std::string & GetMessageType() const =0
Returns the Message type.
static const double MIN_TIME_SCALE
Hold the maximum time scale the system can use for positive and negaive time.
Smart pointer for handling referenced counted objects.
virtual void ShutDown()
Shuts down this object and frees any resources it is using.
virtual void SetTimeScale(const double timeScale)
Sets the system time scale.
TimeTicks Tick()
Get the timers tick value.
A message that is sent out on Frame Event.
A string wrapper that will make sure that all of the strings with the same value will point to the sa...
A message that is sent out on Frame Event.
virtual void IncrementTimeScale()
Increment the system time scale.
trManager::TimingStructure GetTimeStructure()
Gets a copy of the internal time structure.
virtual bool IsRunning()
Query if this object is running.
static const SystemControls UNPAUSE
Unpauses the system.
A message that is sent out on post event traversal.
static const SystemControls SPEED_UP
Speeds up the system.
This class is part of the internal garbage collection system.
static const SystemEvents SHUTTING_DOWN
Gets sent out when the system is shutting down.
static const SystemEvents POST_EVENT_TRAVERSAL
The post event traversal event.
virtual double GetSystemValue() const
Gets system value.
This message carries all the inter-frame timing information.
trBase::ObsrvrPtr< trManager::SystemManager > mSysMan
virtual void PostEventTraversal(const trManager::TimingStructure &timeStruct)
Post event traversal event function.
virtual void OnMessage(const trManager::MessageBase &msg)
This function receives messages coming from the System Manager.
virtual void FrameSynch(const trManager::TimingStructure &timeStruct)
Frame synchronization event function.
static const SystemControls SPEED_DOWN
Slows down the system.
virtual void PreFrame(const trManager::TimingStructure &timeStruct)
Pre frame event function.
static const double MAX_TIME_SCALE
Holds the class type name for efficient comparisons.
virtual const std::string & GetType() const override
Gets the class type.
static const SystemEvents EVENT_TRAVERSAL
The event traversal event.
virtual const trBase::UniqueId & GetUUID(void)
Returns the instances Universally Unique ID.
double GetSecondsPerTick() const
Get the number of seconds per tick.
SystemDirector(const std::string name=CLASS_TYPE)
Hold the minimum time scale the system can use for positive and negaive time.
virtual const bool & IsRegistered()
Returns True if the Instance is registered with a System Manager.
~SystemDirector()
Destructor.
void SetStartTick()
Set the start tick.
static const SystemEvents TIME_SCALE_CHANGED
Indicates a change in the time scale.
static const SystemEvents PRE_FRAME
The pre frame event.
static const SystemEvents FRAME_SYNCH
The frame synchronization event.
static const SystemControls SET_TIME_SCALE
The set speed of the system.
virtual void EventTraversal(const trManager::TimingStructure &timeStruct)
Event traversal event function.
virtual void UpdateTiming(trManager::TimingStructure &timeStruct, double dt)
Updates the system timing incrementing it by dt.
virtual void PostFrame(const trManager::TimingStructure &timeStruct)
Post frame event function.
trManager::TimingStructure mTimeStruct
virtual void Run()
Runs the systems game loop.
virtual const trCore::SystemControls & GetSysControlType() const
Gets system control type.
static const SystemControls SHUT_DOWN
Shuts down the system loop and exits the program.
A message that is sent out on event traversal.
static const trUtil::RefStr MESSAGE_TYPE
Adds an easy and swappable access to the base class.
virtual void CameraSynch(const trManager::TimingStructure &timeStruct)
Camera synchronization event function.
static const SystemEvents CAMERA_SYNCH
The camera synchronization event.
static const trUtil::RefStr CLASS_TYPE
Adds an easy and swappable access to the base class.
trUtil::Timer mSystemTimer
static const SystemEvents FRAME
The frame event.
A message that lets the system know what state to enable and setup.
This is the base class for all the messages in TR.
virtual bool SendMessage(const trManager::MessageBase &message)
Send a message to an Actor, Actor Module, or a Director.
#define LOG_D(msg)
Log a DEBUG message.
static const SystemEvents POST_FRAME
The post frame event.
virtual void RunOnce()
Advanced the game loop by one frame.