ResetToDefaultPlayerOptions, ResetToDefaultSongOptions

This commit is contained in:
Glenn Maynard
2007-04-06 15:44:39 +00:00
parent 25a82867cc
commit 3f776c5bb5
5 changed files with 17 additions and 3 deletions
+7
View File
@@ -89,6 +89,13 @@ void PlayerState::Update( float fDelta )
m_fSecondsUntilAttacksPhasedOut = max( 0, m_fSecondsUntilAttacksPhasedOut - fDelta );
}
void PlayerState::ResetToDefaultPlayerOptions( ModsLevel l )
{
PlayerOptions po;
GAMESTATE->GetDefaultPlayerOptions( po );
m_PlayerOptions.Assign( l, po );
}
/* This is called to launch an attack, or to queue an attack if a.fStartSecond
* is set. This is also called by GameState::Update when activating a queued attack. */
void PlayerState::LaunchAttack( const Attack& a )