00001 /* WheelNotifyIcon - A little graphic to the left of the song's text banner in the MusicWheel. */ 00002 00003 #ifndef WHEEL_NOTIFY_ICON_H 00004 #define WHEEL_NOTIFY_ICON_H 00005 00006 #include "Sprite.h" 00007 00008 class WheelNotifyIcon : public Sprite 00009 { 00010 public: 00011 WheelNotifyIcon(); 00012 00013 struct Flags 00014 { 00015 Flags() { bHasBeginnerOr1Meter = bEdits = false; iPlayersBestNumber = iStagesForSong = 0; } 00016 bool bHasBeginnerOr1Meter; 00017 int iPlayersBestNumber; 00018 bool bEdits; 00019 int iStagesForSong; 00020 }; 00021 00022 void SetFlags( Flags flags ); 00023 00024 virtual void Update( float fDeltaTime ); 00025 virtual bool EarlyAbortDraw(); 00026 00027 protected: 00028 enum Icons { training=0, best1, best2, best3, edits, long_ver, marathon, empty }; 00029 00030 vector<Icons> m_vIconsToShow; 00031 }; 00032 00033 #endif 00034 00035 /* 00036 * (c) 2001-2004 Chris Danford 00037 * All rights reserved. 00038 * 00039 * Permission is hereby granted, free of charge, to any person obtaining a 00040 * copy of this software and associated documentation files (the 00041 * "Software"), to deal in the Software without restriction, including 00042 * without limitation the rights to use, copy, modify, merge, publish, 00043 * distribute, and/or sell copies of the Software, and to permit persons to 00044 * whom the Software is furnished to do so, provided that the above 00045 * copyright notice(s) and this permission notice appear in all copies of 00046 * the Software and that both the above copyright notice(s) and this 00047 * permission notice appear in supporting documentation. 00048 * 00049 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00050 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00051 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00052 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00053 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00054 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00055 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00056 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00057 * PERFORMANCE OF THIS SOFTWARE. 00058 */