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

DifficultyIcon.h

Go to the documentation of this file.
00001 /* DifficultyIcon - Graphical representation of the difficulty class. */ 00002 00003 #ifndef DIFFICULTY_ICON_H 00004 #define DIFFICULTY_ICON_H 00005 00006 #include "Sprite.h" 00007 #include "PlayerNumber.h" 00008 #include "GameConstantsAndTypes.h" 00009 #include "Difficulty.h" 00010 class Steps; 00011 class Trail; 00012 00013 00014 class DifficultyIcon : public Sprite 00015 { 00016 public: 00017 DifficultyIcon(); 00018 virtual bool EarlyAbortDraw() { return m_bBlank || Sprite::EarlyAbortDraw(); } 00019 00020 bool Load( CString sFilePath ); 00021 00022 void SetFromSteps( PlayerNumber pn, Steps* pSteps ); 00023 void SetFromTrail( PlayerNumber pn, Trail* pTrail ); 00024 void SetFromDifficulty( PlayerNumber pn, Difficulty dc ); 00025 00026 protected: 00027 bool m_bBlank; 00028 }; 00029 00030 #endif 00031 00032 /* 00033 * (c) 2001-2004 Chris Danford 00034 * All rights reserved. 00035 * 00036 * Permission is hereby granted, free of charge, to any person obtaining a 00037 * copy of this software and associated documentation files (the 00038 * "Software"), to deal in the Software without restriction, including 00039 * without limitation the rights to use, copy, modify, merge, publish, 00040 * distribute, and/or sell copies of the Software, and to permit persons to 00041 * whom the Software is furnished to do so, provided that the above 00042 * copyright notice(s) and this permission notice appear in all copies of 00043 * the Software and that both the above copyright notice(s) and this 00044 * permission notice appear in supporting documentation. 00045 * 00046 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00047 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00048 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00049 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00050 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00051 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00052 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00053 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00054 * PERFORMANCE OF THIS SOFTWARE. 00055 */

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