00001 /* ScreenBookkeeping - Show coin drop stats. */ 00002 00003 #ifndef SCREEN_BOOKKEEPING_H 00004 #define SCREEN_BOOKKEEPING_H 00005 00006 #include "ScreenWithMenuElements.h" 00007 #include "Sprite.h" 00008 #include "BitmapText.h" 00009 #include "PrefsManager.h" 00010 #include "InputMapper.h" 00011 00012 const int NUM_BOOKKEEPING_COLS = 4; 00013 00014 class ScreenBookkeeping : public ScreenWithMenuElements 00015 { 00016 public: 00017 ScreenBookkeeping( CString sName ); 00018 virtual ~ScreenBookkeeping(); 00019 00020 virtual void DrawPrimitives(); 00021 virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); 00022 virtual void HandleScreenMessage( const ScreenMessage SM ); 00023 00024 virtual void MenuLeft( PlayerNumber pn ); 00025 virtual void MenuRight( PlayerNumber pn ); 00026 virtual void MenuStart( PlayerNumber pn ); 00027 virtual void MenuBack( PlayerNumber pn ); 00028 00029 private: 00030 enum View { VIEW_LAST_DAYS, VIEW_LAST_WEEKS, VIEW_DAY_OF_WEEK, VIEW_HOUR_OF_DAY, NUM_VIEWS }; 00031 00032 void ChangeView( View newView ); 00033 00034 View m_View; 00035 BitmapText m_textTitle; 00036 BitmapText m_textCols[NUM_BOOKKEEPING_COLS]; 00037 }; 00038 00039 #endif 00040 00041 /* 00042 * (c) 2003-2004 Chris Danford 00043 * All rights reserved. 00044 * 00045 * Permission is hereby granted, free of charge, to any person obtaining a 00046 * copy of this software and associated documentation files (the 00047 * "Software"), to deal in the Software without restriction, including 00048 * without limitation the rights to use, copy, modify, merge, publish, 00049 * distribute, and/or sell copies of the Software, and to permit persons to 00050 * whom the Software is furnished to do so, provided that the above 00051 * copyright notice(s) and this permission notice appear in all copies of 00052 * the Software and that both the above copyright notice(s) and this 00053 * permission notice appear in supporting documentation. 00054 * 00055 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00056 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00057 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00058 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00059 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00060 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00061 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00062 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00063 * PERFORMANCE OF THIS SOFTWARE. 00064 */