26#define LOG_STATE_VERBOSE LOG_VERBOSE("State")
27#define LOG_STATE_INFO LOG_INFO("State")
28#define LOG_STATE_WARN LOG_WARN("State")
29#define LOG_STATE_FATAL LOG_FATAL("State")
34class DtPlayerStationApp;
157 virtual void tick(
double dt) {};
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:163
Class for passing arguments during state transitions.
Definition playerStationState.h:45
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:76
std::string myFromState
Name of the source state.
Definition playerStationState.h:73
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:278
virtual void onExit()
Called when this state is being removed from the stack.
Definition playerStationState.h:150
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:125
bool popUntilSelf()
Pops states until this state is exposed.
virtual void onExposed()
Overloaded version without arguments.
Definition playerStationState.h:144
bool active() const
Checks if this state is currently in the stack.
bool myProcessing
Flag indicating whether the state is currently processing.
Definition playerStationState.h:301
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:248
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:120
virtual void onExposed(const DtPlayerStationStateArgs *args)
Called when all states above this state are removed.
Definition playerStationState.h:139
bool popSelf()
Pops this state from the stack.
DtPlayerStationState(const DtPlayerStationState &)=delete
Deleted copy constructor.
void _onEnter(const DtPlayerStationStateArgs *args)
Internal implementation of onEnter.
friend class DtPlayerStationStateManager
Definition playerStationState.h:88
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:157
virtual void onStacked()
Called when a state is added to the stack on top of this one.
Definition playerStationState.h:132
bool myStacking
Flag indicating whether a state push is pending.
Definition playerStationState.h:293
int myStackPos
Position of this state in the stack (0 is bottom)
Definition playerStationState.h:281
bool myExiting
Flag indicating whether a state transition is pending.
Definition playerStationState.h:290
bool myExposed
Flag indicating whether this state is at the top of the stack.
Definition playerStationState.h:287
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:284
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.
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
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
Defines the base class for all VREngage messages.