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

CourseContentsList.h

Go to the documentation of this file.
00001 /* CourseContentsList - Holds course name and banner. */ 00002 00003 #ifndef COURSE_CONTENTS_LIST_H 00004 #define COURSE_CONTENTS_LIST_H 00005 00006 #include "BitmapText.h" 00007 #include "ActorFrame.h" 00008 #include "Sprite.h" 00009 #include "Quad.h" 00010 #include "CourseEntryDisplay.h" 00011 class Course; 00012 class Song; 00013 class Steps; 00014 00015 00016 const int MAX_VISIBLE_CONTENTS = 5; 00017 const int MAX_TOTAL_CONTENTS = 56; 00018 00019 00020 00021 class CourseContentsList : public ActorFrame 00022 { 00023 public: 00024 CourseContentsList(); 00025 00026 virtual void Update( float fDeltaTime ); 00027 virtual void DrawPrimitives(); 00028 00029 void SetFromGameState(); 00030 void TweenInAfterChangedCourse(); 00031 00032 protected: 00033 00034 Quad m_quad; 00035 00036 int m_iNumContents; 00037 CourseEntryDisplay m_CourseContentDisplays[MAX_TOTAL_CONTENTS]; 00038 float ContentsBarHeight, ContentsBarWidth; 00039 00040 float m_fTimeUntilScroll; 00041 float m_fItemAtTopOfList; // between 0 and m_iNumContents 00042 }; 00043 00044 #endif 00045 00046 /* 00047 * (c) 2001-2004 Chris Danford 00048 * All rights reserved. 00049 * 00050 * Permission is hereby granted, free of charge, to any person obtaining a 00051 * copy of this software and associated documentation files (the 00052 * "Software"), to deal in the Software without restriction, including 00053 * without limitation the rights to use, copy, modify, merge, publish, 00054 * distribute, and/or sell copies of the Software, and to permit persons to 00055 * whom the Software is furnished to do so, provided that the above 00056 * copyright notice(s) and this permission notice appear in all copies of 00057 * the Software and that both the above copyright notice(s) and this 00058 * permission notice appear in supporting documentation. 00059 * 00060 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00061 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00062 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00063 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00064 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00065 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00066 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00067 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00068 * PERFORMANCE OF THIS SOFTWARE. 00069 */

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