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

Banner.h

Go to the documentation of this file.
00001 /* Banner - The song's banner displayed in SelectSong. */ 00002 00003 #ifndef BANNER_H 00004 #define BANNER_H 00005 00006 #include "Sprite.h" 00007 #include "RageTextureID.h" 00008 class Song; 00009 class Course; 00010 class Character; 00011 00012 class Banner : public Sprite 00013 { 00014 public: 00015 Banner(); 00016 virtual ~Banner() { } 00017 00018 virtual bool Load( RageTextureID ID ); 00019 00020 virtual void Update( float fDeltaTime ); 00021 00022 void LoadFromSong( Song* pSong ); // NULL means no song 00023 void LoadAllMusic(); 00024 void LoadSort(); 00025 void LoadMode(); 00026 void LoadFromGroup( CString sGroupName ); 00027 void LoadFromCourse( Course* pCourse ); 00028 void LoadCardFromCharacter( Character* pCharacter ); 00029 void LoadIconFromCharacter( Character* pCharacter ); 00030 void LoadTABreakFromCharacter( Character* pCharacter ); 00031 void LoadRoulette(); 00032 void LoadRandom(); 00033 void LoadFallback(); 00034 00035 static void CacheGlobalBanners(); 00036 00037 void SetScrolling( bool bScroll, float Percent = 0); 00038 bool IsScrolling() const { return m_bScrolling; } 00039 float ScrollingPercent() const { return m_fPercentScrolling; } 00040 00041 protected: 00042 00043 bool m_bScrolling; 00044 float m_fPercentScrolling; 00045 }; 00046 00047 #endif 00048 00049 /* 00050 * (c) 2001-2004 Chris Danford 00051 * All rights reserved. 00052 * 00053 * Permission is hereby granted, free of charge, to any person obtaining a 00054 * copy of this software and associated documentation files (the 00055 * "Software"), to deal in the Software without restriction, including 00056 * without limitation the rights to use, copy, modify, merge, publish, 00057 * distribute, and/or sell copies of the Software, and to permit persons to 00058 * whom the Software is furnished to do so, provided that the above 00059 * copyright notice(s) and this permission notice appear in all copies of 00060 * the Software and that both the above copyright notice(s) and this 00061 * permission notice appear in supporting documentation. 00062 * 00063 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00064 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00065 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00066 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00067 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00068 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00069 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00070 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00071 * PERFORMANCE OF THIS SOFTWARE. 00072 */

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