Files
itgmania212121/stepmania/src/ActorFrame.h
T

75 lines
2.6 KiB
C++
Raw Normal View History

2004-06-08 00:47:53 +00:00
/* ActorFrame - A container for other actors. */
#ifndef ACTORFRAME_H
#define ACTORFRAME_H
2001-12-11 11:44:26 +00:00
#include "Actor.h"
2002-01-16 10:01:32 +00:00
class ActorFrame : public Actor
2001-12-11 11:44:26 +00:00
{
public:
ActorFrame();
virtual void AddChild( Actor* pActor );
2004-05-02 03:01:27 +00:00
virtual void RemoveChild( Actor* pActor );
2003-01-20 05:08:35 +00:00
virtual void MoveToTail( Actor* pActor );
virtual void MoveToHead( Actor* pActor );
2004-05-02 03:01:27 +00:00
virtual void SortByDrawOrder();
2003-01-21 20:44:09 +00:00
virtual ~ActorFrame() { }
2004-01-17 23:14:56 +00:00
void DeleteAllChildren();
2001-12-11 11:44:26 +00:00
2004-12-03 05:19:46 +00:00
virtual void RunCommandOnChildren( const Commands &cmds ); /* but not on self */
virtual void RunCommandOnChildren( const Command &cmd ); /* but not on self */
virtual void HandleCommand( const Command &command ); // derivable
2004-01-11 07:12:13 +00:00
2002-01-16 10:01:32 +00:00
virtual void Update( float fDeltaTime );
2002-05-19 01:59:48 +00:00
virtual void DrawPrimitives();
2001-12-11 11:44:26 +00:00
virtual void SetDiffuse( RageColor c );
2004-01-11 05:33:24 +00:00
virtual void SetDiffuseAlpha( float f );
2004-05-15 09:26:21 +00:00
virtual void SetZTestMode( ZTestMode mode );
2003-11-18 20:33:18 +00:00
virtual void SetZWrite( bool b );
2003-07-20 01:32:42 +00:00
virtual void FinishTweening();
2003-11-18 17:50:50 +00:00
virtual void HurryTweening( float factor );
2003-07-20 01:32:42 +00:00
2003-01-01 09:05:21 +00:00
/* Amount of time until all tweens (and all children's tweens) have stopped: */
2003-03-02 01:43:33 +00:00
virtual float GetTweenTimeLeft() const;
2003-01-01 09:05:21 +00:00
2004-08-22 02:16:31 +00:00
virtual void GainFocus( float fRate, bool bRewindMovie, bool bLoop );
virtual void LoseFocus();
2004-02-01 03:14:37 +00:00
virtual void PlayCommand( const CString &sCommandName );
protected:
2003-01-03 05:56:28 +00:00
vector<Actor*> m_SubActors;
bool m_bPropagateCommands;
2001-12-11 11:44:26 +00:00
};
2002-11-16 08:08:46 +00:00
#endif
2004-06-08 00:47:53 +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.
*/