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

ScreenEnding.h

Go to the documentation of this file.
00001 /* ScreenEnding - Ending screen that shows stats. */ 00002 00003 #ifndef SCREEN_ENDING_H 00004 #define SCREEN_ENDING_H 00005 00006 #include "BitmapText.h" 00007 #include "ScreenAttract.h" 00008 #include "Sprite.h" 00009 00010 enum EndingStatsLine 00011 { 00012 CALORIES_TODAY, 00013 CURRENT_COMBO, 00014 PERCENT_COMPLETE, 00015 PERCENT_COMPLETE_EASY, 00016 PERCENT_COMPLETE_MEDIUM, 00017 PERCENT_COMPLETE_HARD, 00018 PERCENT_COMPLETE_CHALLENGE, 00019 NUM_ENDING_STATS_LINES 00020 }; 00021 #define FOREACH_EndingStatsLine( l ) FOREACH_ENUM( EndingStatsLine, NUM_ENDING_STATS_LINES, l ) 00022 00023 class ScreenEnding : public ScreenAttract 00024 { 00025 public: 00026 ScreenEnding( CString sName ); 00027 ~ScreenEnding(); 00028 00029 void Update( float fDeltaTime ); 00030 virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); 00031 void HandleScreenMessage( const ScreenMessage SM ); 00032 00033 private: 00034 BitmapText m_textPlayerName[NUM_PLAYERS]; 00035 struct Line 00036 { 00037 BitmapText title; 00038 BitmapText value; 00039 } m_Lines[NUM_ENDING_STATS_LINES][NUM_PLAYERS]; 00040 00041 Sprite m_sprRemoveMemoryCard[NUM_PLAYERS]; 00042 bool m_bWaitingForRemoveCard[NUM_PLAYERS]; 00043 }; 00044 00045 #endif 00046 00047 /* 00048 * (c) 2004 Chris Danford 00049 * All rights reserved. 00050 * 00051 * Permission is hereby granted, free of charge, to any person obtaining a 00052 * copy of this software and associated documentation files (the 00053 * "Software"), to deal in the Software without restriction, including 00054 * without limitation the rights to use, copy, modify, merge, publish, 00055 * distribute, and/or sell copies of the Software, and to permit persons to 00056 * whom the Software is furnished to do so, provided that the above 00057 * copyright notice(s) and this permission notice appear in all copies of 00058 * the Software and that both the above copyright notice(s) and this 00059 * permission notice appear in supporting documentation. 00060 * 00061 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00062 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00063 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00064 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00065 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00066 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00067 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00068 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00069 * PERFORMANCE OF THIS SOFTWARE. 00070 */

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