コード例 #1
0
ファイル: GestureState.cpp プロジェクト: ophelimos/kinectUI
GestureState::GestureState(int userId)
{
	state = OFF;
	name = NULL;
	id = userId;
	updateDebug();
}
コード例 #2
0
ファイル: GestureState.cpp プロジェクト: ophelimos/kinectUI
// 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;
}
コード例 #3
0
ファイル: GestureState.cpp プロジェクト: ophelimos/kinectUI
void GestureState::set(GestureStateEnum newState)
{
	state = newState;
	updateDebug();
}
コード例 #4
0
ファイル: StateManager.cpp プロジェクト: thogrim/Radar
void StateManager::update(const sf::Time& dt){
	updateDebug();
	stateStack_.back()->update(dt);
}