This commit is contained in:
Steve Checkoway
2008-01-05 12:17:43 +00:00
parent 60f953f3c1
commit 036f468da5
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -840,7 +840,7 @@ void Actor::SetEffectPeriod( float fTime )
m_fEffectHoldAtZero = 0;
}
float Actor::GetEffectPeriod()
float Actor::GetEffectPeriod() const
{
return m_fEffectRampUp + m_fEffectHoldAtHalf + m_fEffectRampDown + m_fEffectHoldAtZero;
}
@@ -1168,7 +1168,7 @@ void Actor::AddCommand( const RString &sCmdName, apActorCommands apac )
}
}
bool Actor::HasCommand( const RString &sCmdName )
bool Actor::HasCommand( const RString &sCmdName ) const
{
return GetCommand(sCmdName) != NULL;
}
+2 -2
View File
@@ -271,7 +271,7 @@ public:
void SetEffectColor1( RageColor c ) { m_effectColor1 = c; }
void SetEffectColor2( RageColor c ) { m_effectColor2 = c; }
void SetEffectPeriod( float fTime );
float GetEffectPeriod();
float GetEffectPeriod() const;
void SetEffectTiming( float fRampUp, float fAtHalf, float fRampDown, float fAtZero );
void SetEffectOffset( float fTime ) { m_fEffectOffset = fTime; }
void SetEffectClock( EffectClock c ) { m_EffectClock = c; }
@@ -355,7 +355,7 @@ public:
// Named commands
//
void AddCommand( const RString &sCmdName, apActorCommands apac );
bool HasCommand( const RString &sCmdName );
bool HasCommand( const RString &sCmdName ) const;
const apActorCommands *GetCommand( const RString &sCommandName ) const;
void PlayCommand( const RString &sCommandName ) { HandleMessage( Message(sCommandName) ); } // convenience
void PlayCommandNoRecurse( const Message &msg );