58 LOG_E(
"One of the pointers is not a Director, priority comparison failed.")
64 LOG_E(
"Invalid pointer, priority comparison failed.")
virtual void BuildInvokables() override
Builds the default invokables for this class.
Sets the priority for a Director instance.
virtual trManager::DirectorPriority & GetDirectorPriority() const
Returns the Directors message priority.
An Invokable is a queriable method interface that can be added to a trManager::ActorBase Invoking the...
A string wrapper that will make sure that all of the strings with the same value will point to the sa...
trUtil::EnumerationPointer< const trManager::EntityType > mEntityType
DirectorBase(const std::string &name=CLASS_TYPE)
Holds the class type name for efficient comparisons.
virtual void OnMessage(const trManager::MessageBase &msg)
Function that is used by the Systems Manager to deliver all messages to the Director.
virtual void SetDirectorPriority(trUtil::EnumerationPointer< trManager::DirectorPriority > priority)
Sets the Directors message priority.
trUtil::EnumerationPointer< trManager::DirectorPriority > mDirectorPriority
static const trUtil::RefStr CLASS_TYPE
Adds an easy and swappable access to the base class.
static bool CompareComponentPriority(const trBase::SmrtPtr< trManager::EntityBase > &first, const trBase::SmrtPtr< trManager::EntityBase > &second)
Local function used to compare priorities of Directors.
This class is part of the internal garbage collection system.
Functor< typename trUtil::FunTraits< CallType >::ResultType, typename trUtil::FunTraits< CallType >::TypeListType > MakeFunctor(CallType fun)
Constructor.
static DirectorPriority NORMAL
Normal priority.
virtual void AddInvokable(trManager::Invokable &newInvokable)
Adds an invokable that can receive a message.
static const trUtil::RefStr ON_MESSAGE_INVOKABLE
Holds the class type name for efficient comparisons.
#define LOG_E(msg)
Log an ERROR message.
bool Valid() const
Returns True if the smart pointer has a valid internal pointer set.
static const EntityType DIRECTOR
T * Get() const
Returns the stored internal pointer.
const EntityType & GetEntityType()
Returns the Entity Type, which is usually a Director, Actor, or an Actor module.
unsigned int GetID() const
Returns the Numeric value of the Enum.
virtual void OnTick(const trManager::MessageBase &msg)
Function that will receive Tick Messages from the System Manager.
This is the base class for all the messages in TR.