00001 /* CourseEntryDisplay - Holds course name and banner. */ 00002 00003 #ifndef COURSE_ENTRY_DISPLAY_H 00004 #define COURSE_ENTRY_DISPLAY_H 00005 00006 #include "BitmapText.h" 00007 #include "TextBanner.h" 00008 #include "ActorFrame.h" 00009 #include "Sprite.h" 00010 #include "GameConstantsAndTypes.h" 00011 class Course; 00012 class Song; 00013 class Steps; 00014 struct TrailEntry; 00015 00016 class CourseEntryDisplay : public ActorFrame 00017 { 00018 public: 00019 void Load(); 00020 00021 void LoadFromTrailEntry( int iNum, const TrailEntry *te[NUM_PLAYERS] ); 00022 00023 private: 00024 void SetDifficulty( PlayerNumber pn, const CString &text, RageColor c ); 00025 00026 Sprite m_sprFrame; 00027 BitmapText m_textNumber; 00028 TextBanner m_TextBanner; 00029 BitmapText m_textFoot[NUM_PLAYERS]; 00030 BitmapText m_textDifficultyNumber[NUM_PLAYERS]; 00031 BitmapText m_textModifiers; 00032 }; 00033 00034 #endif 00035 00036 /* 00037 * (c) 2001-2004 Chris Danford 00038 * All rights reserved. 00039 * 00040 * Permission is hereby granted, free of charge, to any person obtaining a 00041 * copy of this software and associated documentation files (the 00042 * "Software"), to deal in the Software without restriction, including 00043 * without limitation the rights to use, copy, modify, merge, publish, 00044 * distribute, and/or sell copies of the Software, and to permit persons to 00045 * whom the Software is furnished to do so, provided that the above 00046 * copyright notice(s) and this permission notice appear in all copies of 00047 * the Software and that both the above copyright notice(s) and this 00048 * permission notice appear in supporting documentation. 00049 * 00050 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00051 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00052 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00053 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00054 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00055 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00056 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00057 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00058 * PERFORMANCE OF THIS SOFTWARE. 00059 */