Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

MenuTimer.h

Go to the documentation of this file.
00001 /* MenuTimer - A timer in the upper right corner of the menu that ticks down. */ 00002 00003 #ifndef MENU_TIMER_H 00004 #define MENU_TIMER_H 00005 00006 #include "Sprite.h" 00007 #include "song.h" 00008 #include "ActorFrame.h" 00009 #include "BitmapText.h" 00010 #include "RageSound.h" 00011 00012 00013 class MenuTimer : public ActorFrame 00014 { 00015 public: 00016 MenuTimer(); 00017 00018 virtual void Update( float fDeltaTime ); 00019 00020 void SetSeconds( int iTimerSeconds ); 00021 void Start(); // resume countdown from paused 00022 void Pause(); // don't count down 00023 void Stop(); // set to "00" and pause 00024 void Disable(); // set to "99" and pause 00025 void Stall(); // pause countdown for a sec 00026 void EnableStealth( bool bStealth ); // make timer invisible and silent 00027 00028 protected: 00029 float m_fSecondsLeft; 00030 float m_fStallSeconds, m_fStallSecondsLeft; 00031 bool m_bPaused; 00032 00033 void SetText( int iSeconds ); 00034 00035 BitmapText m_textDigit1; 00036 BitmapText m_textDigit2; 00037 00038 RageSound m_soundBeep; 00039 }; 00040 00041 #endif 00042 00043 /* 00044 * (c) 2002-2004 Chris Danford 00045 * All rights reserved. 00046 * 00047 * Permission is hereby granted, free of charge, to any person obtaining a 00048 * copy of this software and associated documentation files (the 00049 * "Software"), to deal in the Software without restriction, including 00050 * without limitation the rights to use, copy, modify, merge, publish, 00051 * distribute, and/or sell copies of the Software, and to permit persons to 00052 * whom the Software is furnished to do so, provided that the above 00053 * copyright notice(s) and this permission notice appear in all copies of 00054 * the Software and that both the above copyright notice(s) and this 00055 * permission notice appear in supporting documentation. 00056 * 00057 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00058 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00059 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00060 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00061 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00062 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00063 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00064 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00065 * PERFORMANCE OF THIS SOFTWARE. 00066 */

Generated on Thu Jan 27 20:57:24 2005 for StepMania by doxygen 1.3.7