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

BGAnimation.h

Go to the documentation of this file.
00001 /* BGAnimation - An ActorFrame that loads itself. */ 00002 00003 #ifndef BGANIMATION_H 00004 #define BGANIMATION_H 00005 00006 /* Note that the names "BGAnimation" and "BGAnimationLayer" are historical; this class 00007 * is used for many things other than backgrounds. */ 00008 #include "ActorScroller.h" 00009 00010 struct XNode; 00011 class IniFile; 00012 00013 class BGAnimation : public ActorScroller 00014 { 00015 public: 00016 BGAnimation(); 00017 virtual ~BGAnimation(); 00018 00019 void Unload(); 00020 00021 void LoadFromAniDir( const CString &sAniDir, bool bGeneric=true ); 00022 void LoadFromNode( const CString& sDir, const XNode* pNode ); 00023 00024 protected: 00025 void AddLayersFromAniDir( const CString &_sAniDir, const IniFile& ini, bool bGeneric ); 00026 }; 00027 00028 #endif 00029 00030 /* 00031 * (c) 2001-2004 Ben Nordstrom, Chris Danford 00032 * All rights reserved. 00033 * 00034 * Permission is hereby granted, free of charge, to any person obtaining a 00035 * copy of this software and associated documentation files (the 00036 * "Software"), to deal in the Software without restriction, including 00037 * without limitation the rights to use, copy, modify, merge, publish, 00038 * distribute, and/or sell copies of the Software, and to permit persons to 00039 * whom the Software is furnished to do so, provided that the above 00040 * copyright notice(s) and this permission notice appear in all copies of 00041 * the Software and that both the above copyright notice(s) and this 00042 * permission notice appear in supporting documentation. 00043 * 00044 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00045 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00046 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00047 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00048 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00049 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00050 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00051 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00052 * PERFORMANCE OF THIS SOFTWARE. 00053 */

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