Vigilante Game Framework  1.0.0.8
A 2D/3D C++ Game Framework using SFML.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VStateManager Class Reference

Manager class for VStates, allows switching current states or adding states to a stack. More...

#include <VState.h>

Public Member Functions

VStateCurrentState ()
 Gets current state.
 
void ChangeState (VState *state)
 
void PushState (VState *state)
 
void PopState ()
 Pops the top state off the stack.
 
void Clear ()
 Clears all states from the stack.
 

Protected Member Functions

 VStateManager (VStateManager const &)=delete
 
void operator= (VStateManager const &)=delete
 

Protected Attributes

std::vector< VState * > states
 List of VStates in the manager.
 

Detailed Description

Manager class for VStates, allows switching current states or adding states to a stack.

Member Function Documentation

◆ ChangeState()

void VStateManager::ChangeState ( VState state)

Change current top state to a new state.

Parameters
statethe VState to change to.

◆ PushState()

void VStateManager::PushState ( VState state)

Pushes new state to the top of the stack.

Parameters
statethe VState to add to the stack.

The documentation for this class was generated from the following file: