Files
itgmania212121/stepmania/src/Transition.h
T

71 lines
2.2 KiB
C++
Raw Normal View History

2005-09-03 05:58:22 +00:00
/* Transition - Transition that draws an actor. */
2003-03-05 08:48:35 +00:00
2004-06-01 00:53:06 +00:00
#ifndef TRANSITION_H
#define TRANSITION_H
2003-03-05 08:48:35 +00:00
#include "ActorFrame.h"
2005-02-09 05:27:51 +00:00
#include "AutoActor.h"
2003-03-05 08:48:35 +00:00
#include "ScreenMessage.h"
class Transition : public ActorFrame
2003-03-05 08:48:35 +00:00
{
public:
2003-04-13 02:33:11 +00:00
Transition();
2003-03-05 08:48:35 +00:00
2006-01-22 01:00:06 +00:00
void Load( RString sBGAniDir );
2003-03-05 08:48:35 +00:00
virtual void UpdateInternal( float fDeltaTime );
2006-01-22 01:00:06 +00:00
virtual void PlayCommand( const RString &sCommandName, Actor *pParent = NULL );
2003-03-05 08:48:35 +00:00
2003-03-09 00:55:49 +00:00
virtual void StartTransitioning( ScreenMessage send_when_done = SM_None );
2005-08-25 00:57:53 +00:00
virtual bool EarlyAbortDraw() const;
2004-04-25 22:38:55 +00:00
virtual float GetTweenTimeLeft() const;
void Reset(); // explicitly allow transitioning again
2003-03-05 08:48:35 +00:00
2003-11-07 20:54:18 +00:00
bool IsTransitioning() const { return m_State == transitioning; };
bool IsFinished() const { return m_State == finished; };
float GetLengthSeconds() const;
2003-03-05 08:48:35 +00:00
protected:
enum State {
waiting,
transitioning,
finished
} m_State;
2005-01-15 21:03:26 +00:00
AutoActor m_sprTransition;
float m_fLengthSeconds;
2003-03-05 08:48:35 +00:00
ScreenMessage m_MessageToSendWhenDone;
};
#endif
2004-06-01 00:53:06 +00:00
/*
* (c) 2001-2004 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/