00001 /* ScoreDisplayNormal - Shows point score during gameplay and some menus. */ 00002 00003 #ifndef SCORE_DISPLAY_NORMAL_H 00004 #define SCORE_DISPLAY_NORMAL_H 00005 00006 #include "ScoreDisplay.h" 00007 #include "BitmapText.h" 00008 #include "Sprite.h" 00009 00010 class ScoreDisplayNormal : public ScoreDisplay 00011 { 00012 public: 00013 ScoreDisplayNormal(); 00014 00015 virtual void Init( const PlayerState* pPlayerState ); 00016 00017 virtual void Update( float fDeltaTime ); 00018 00019 virtual void SetScore( int iNewScore ); 00020 virtual void SetText( CString s ); 00021 00022 protected: 00023 Sprite m_sprFrame; 00024 BitmapText m_text; 00025 00026 int m_iScore; // the actual score 00027 int m_iTrailingScore; // what is displayed temporarily 00028 int m_iScoreVelocity; // how fast trailing approaches real score 00029 }; 00030 00031 #endif 00032 00033 /* 00034 * (c) 2001-2004 Chris Danford 00035 * All rights reserved. 00036 * 00037 * Permission is hereby granted, free of charge, to any person obtaining a 00038 * copy of this software and associated documentation files (the 00039 * "Software"), to deal in the Software without restriction, including 00040 * without limitation the rights to use, copy, modify, merge, publish, 00041 * distribute, and/or sell copies of the Software, and to permit persons to 00042 * whom the Software is furnished to do so, provided that the above 00043 * copyright notice(s) and this permission notice appear in all copies of 00044 * the Software and that both the above copyright notice(s) and this 00045 * permission notice appear in supporting documentation. 00046 * 00047 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00048 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00049 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00050 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00051 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00052 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00053 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00054 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00055 * PERFORMANCE OF THIS SOFTWARE. 00056 */