Exemplo n.º 1
0
GestureState::GestureState(int userId)
{
	state = OFF;
	name = NULL;
	id = userId;
	updateDebug();
}
Exemplo n.º 2
0
// Very well might not be used, but avoids confusion with the other
// assignment operator
GestureState& GestureState::operator=(GestureState& other)
{
	state = other.state;
	updateDebug();

	return *this;
}
Exemplo n.º 3
0
void GestureState::set(GestureStateEnum newState)
{
	state = newState;
	updateDebug();
}
Exemplo n.º 4
0
void StateManager::update(const sf::Time& dt){
	updateDebug();
	stateStack_.back()->update(dt);
}