28#define LOG_STATE_VERBOSE(format, ...) LOG_VERBOSE("State", format, ##__VA_ARGS__)
29#define LOG_STATE_INFO(format, ...) LOG_INFO("State", format, ##__VA_ARGS__)
30#define LOG_STATE_WARN(format, ...) LOG_WARN("State", format, ##__VA_ARGS__)
31#define LOG_STATE_FATAL(format, ...) LOG_FATAL("State", format, ##__VA_ARGS__)
36class DtPlayerStationApp;
159 virtual void tick(
double dt) {};
Provides attribute handling system for hierarchical data storage and manipulation.
Convenience manager that owns and organises a collection of attribute callbacks.
Definition attributeCallback.h:223
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:155
Class for passing arguments during state transitions.
Definition playerStationState.h:47
std::shared_ptr< DtVreMessage > message_ptr() const
Gets the message as a shared pointer.
DtPlayerStationStateArgs(const std::string &fromStateType, DtVreMessage *message=NULL)
Constructor with raw message pointer.
std::shared_ptr< DtVreMessage > myMessage
Shared pointer to the optional message.
Definition playerStationState.h:78
std::string myFromState
Name of the source state.
Definition playerStationState.h:75
const std::string & fromState() const
Gets the name of the source state.
const DtVreMessage * message() const
Gets the message as a raw pointer.
DtPlayerStationStateArgs(const std::string &fromStateType, std::shared_ptr< DtVreMessage > message)
Constructor with shared pointer to message.
bool stacking() const
Checks if this state is queued to be stacked.
std::string myStateType
String identifier for this state's type.
Definition playerStationState.h:292
virtual void onExit()
Called when this state is being removed from the stack.
Definition playerStationState.h:152
bool switchToState(const std::string &newState, DtPlayerStationStateArgs *args=NULL)
Transitions from this state to a new state.
virtual void onEnter()
Overloaded version without arguments.
Definition playerStationState.h:127
bool popUntilSelf()
Pops states until this state is exposed.
virtual void onExposed()
Overloaded version without arguments.
Definition playerStationState.h:146
bool active() const
Checks if this state is currently in the stack.
DtVreMessageHandlerGroup myMessageHandlers
Member-scope instance of message handler group.
Definition playerStationState.h:262
bool myProcessing
Flag indicating whether the state is currently processing.
Definition playerStationState.h:315
void _onExit()
Internal implementation of onExit.
DtPlayerStationApp & app() const
Gets a reference to the player station application.
DtPlayerStationState(DtPlayerStationApp &app, std::string stateType)
Constructor.
DtPlayerStationApp & myApp
Reference to the player station application.
Definition playerStationState.h:250
bool exiting() const
Checks if this state is queued to be exited.
virtual void onEnter(const DtPlayerStationStateArgs *args)
Called when the state is added to the stack.
Definition playerStationState.h:122
virtual void onExposed(const DtPlayerStationStateArgs *args)
Called when all states above this state are removed.
Definition playerStationState.h:141
bool popSelf()
Pops this state from the stack.
DtPlayerStationState(const DtPlayerStationState &)=delete
Deleted copy constructor.
DtAttributeCallbackManager myAttributeCallbacks
Member-scope instance of Attribute callback manager.
Definition playerStationState.h:256
void _onEnter(const DtPlayerStationStateArgs *args)
Internal implementation of onEnter.
friend class DtPlayerStationStateManager
Definition playerStationState.h:90
void _onExposed(const DtPlayerStationStateArgs *args)
Internal implementation of onExposed.
void _onStacked()
Internal implementation of onStacked.
DtPlayerStationState & operator=(const DtPlayerStationState &)=delete
Deleted assignment operator.
virtual ~DtPlayerStationState()
Virtual destructor.
virtual void tick(double dt)
Main update function called while this state is active.
Definition playerStationState.h:159
virtual void onStacked()
Called when a state is added to the stack on top of this one.
Definition playerStationState.h:134
bool myStacking
Flag indicating whether a state push is pending.
Definition playerStationState.h:307
int myStackPos
Position of this state in the stack (0 is bottom)
Definition playerStationState.h:295
bool myExiting
Flag indicating whether a state transition is pending.
Definition playerStationState.h:304
bool myExposed
Flag indicating whether this state is at the top of the stack.
Definition playerStationState.h:301
bool popUntilState(const std::string &parentState, DtPlayerStationStateArgs *args=NULL)
Pops states until a specific parent state is exposed.
bool myActive
Flag indicating whether this state is in the stack.
Definition playerStationState.h:298
bool pushState(const std::string &newState, DtPlayerStationStateArgs *args=NULL)
Pushes a new state onto the stack.
bool exposed() const
Checks if this state is currently the topmost state.
bool pushSelf()
Pushes a copy of this state onto the stack.
const std::string & stateType() const
Gets the string identifier for this state's type.
Manager class for connecting message handlers to message types.
Definition vreMessageManager.h:292
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
!
Definition glsVreMessageUtil.h:50
Defines the central message manager for the VREngage messaging system.