Const, include fixes.
This commit is contained in:
@@ -39,7 +39,7 @@ public:
|
||||
void GainingFocus( float fRate, bool bRewindMovie, bool bLoop );
|
||||
void LosingFocus();
|
||||
|
||||
float GetLengthSeconds() { return m_fLengthSeconds; }
|
||||
float GetLengthSeconds() const { return m_fLengthSeconds; }
|
||||
|
||||
virtual void HandleCommand( const CStringArray &asTokens );
|
||||
void PlayOffCommand() { PlayCommand("Off"); }
|
||||
|
||||
@@ -34,11 +34,13 @@ HelpDisplay::HelpDisplay()
|
||||
}
|
||||
|
||||
|
||||
void HelpDisplay::SetTips( CStringArray &arrayTips )
|
||||
void HelpDisplay::SetTips( const CStringArray &arrayTips )
|
||||
{
|
||||
m_arrayTips = arrayTips;
|
||||
if( !m_arrayTips.empty() )
|
||||
m_textTip.SetText( m_arrayTips[0] );
|
||||
else
|
||||
m_textTip.SetText( "" );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "Sprite.h"
|
||||
#include "song.h"
|
||||
#include "ActorFrame.h"
|
||||
#include "BitmapText.h"
|
||||
|
||||
@@ -21,7 +19,7 @@ class HelpDisplay : public ActorFrame
|
||||
{
|
||||
public:
|
||||
HelpDisplay();
|
||||
void SetTips( CStringArray &arrayTips );
|
||||
void SetTips( const CStringArray &arrayTips );
|
||||
|
||||
virtual void Update( float fDeltaTime );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user