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

Transition.h

Go to the documentation of this file.
00001 /* Transition - Transition that draws a BGAnimation. */ 00002 00003 #ifndef TRANSITION_H 00004 #define TRANSITION_H 00005 00006 #include "Actor.h" 00007 #include "ActorUtil.h" 00008 #include "ScreenMessage.h" 00009 #include "RandomSample.h" 00010 00011 00012 class Transition : public Actor 00013 { 00014 public: 00015 Transition(); 00016 00017 void Load( CString sBGAniDir ); 00018 00019 virtual void Update( float fDeltaTime ); 00020 virtual void DrawPrimitives(); 00021 00022 virtual void StartTransitioning( ScreenMessage send_when_done = SM_None ); 00023 virtual bool EarlyAbortDraw(); 00024 virtual float GetTweenTimeLeft() const; 00025 00026 bool IsTransitioning() const { return m_State == transitioning; }; 00027 bool IsFinished() const { return m_State == finished; }; 00028 float GetLengthSeconds() const; 00029 00030 protected: 00031 00032 enum State { 00033 waiting, 00034 transitioning, 00035 finished 00036 } m_State; 00037 00038 AutoActor m_sprTransition; 00039 float m_fLengthSeconds; 00040 RandomSample m_sound; 00041 00042 ScreenMessage m_MessageToSendWhenDone; 00043 }; 00044 00045 00046 #endif 00047 00048 /* 00049 * (c) 2001-2004 Chris Danford 00050 * All rights reserved. 00051 * 00052 * Permission is hereby granted, free of charge, to any person obtaining a 00053 * copy of this software and associated documentation files (the 00054 * "Software"), to deal in the Software without restriction, including 00055 * without limitation the rights to use, copy, modify, merge, publish, 00056 * distribute, and/or sell copies of the Software, and to permit persons to 00057 * whom the Software is furnished to do so, provided that the above 00058 * copyright notice(s) and this permission notice appear in all copies of 00059 * the Software and that both the above copyright notice(s) and this 00060 * permission notice appear in supporting documentation. 00061 * 00062 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00063 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00064 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00065 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00066 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00067 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00068 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00069 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00070 * PERFORMANCE OF THIS SOFTWARE. 00071 */

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