From e927fa4022de620aa03a8489326dcff063e19602 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 13 Jan 2006 05:02:44 +0000 Subject: [PATCH] move stuff out of header --- stepmania/src/PlayerState.cpp | 36 +++++++++++++++++++++++++++++++++ stepmania/src/PlayerState.h | 38 ++--------------------------------- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/stepmania/src/PlayerState.cpp b/stepmania/src/PlayerState.cpp index 193ab19edc..31865128cb 100644 --- a/stepmania/src/PlayerState.cpp +++ b/stepmania/src/PlayerState.cpp @@ -2,6 +2,42 @@ #include "PlayerState.h" #include "GameState.h" +PlayerState::PlayerState() +{ + m_PlayerNumber = PLAYER_INVALID; + m_mp = MultiPlayer_INVALID; + Reset(); +} + +void PlayerState::Reset() +{ + m_CurrentPlayerOptions.Init(); + m_PlayerOptions.Init(); + m_StagePlayerOptions.Init(); + m_StoredPlayerOptions.Init(); + + m_fLastDrawnBeat = -100; + + m_HealthState = ALIVE; + + m_PlayerController = PC_HUMAN; + + m_iCpuSkill = 5; + + m_iLastPositiveSumOfAttackLevels = 0; + m_fSecondsUntilAttacksPhasedOut = 0; + m_bAttackBeganThisUpdate = false; + m_bAttackEndedThisUpdate = false; + m_ActiveAttacks.clear(); + m_ModsToApply.clear(); + + m_fSuperMeter = 0; // between 0 and NUM_ATTACK_LEVELS + m_fSuperMeterGrowthScale = 1; + + for( int i=0; i #include "Attack.h" struct lua_State; class PlayerState { public: - PlayerState() - { - m_PlayerNumber = PLAYER_INVALID; - m_mp = MultiPlayer_INVALID; - Reset(); - } - void Reset() - { - m_CurrentPlayerOptions.Init(); - m_PlayerOptions.Init(); - m_StagePlayerOptions.Init(); - m_StoredPlayerOptions.Init(); - - m_fLastDrawnBeat = -100; - - m_HealthState = ALIVE; - - m_PlayerController = PC_HUMAN; - - m_iCpuSkill = 5; - - m_iLastPositiveSumOfAttackLevels = 0; - m_fSecondsUntilAttacksPhasedOut = 0; - m_bAttackBeganThisUpdate = false; - m_bAttackEndedThisUpdate = false; - m_ActiveAttacks.clear(); - m_ModsToApply.clear(); - - m_fSuperMeter = 0; // between 0 and NUM_ATTACK_LEVELS - m_fSuperMeterGrowthScale = 1; - - for( int i=0; i