add 3D scrolling to ActorScroller

generalize BGAnimation, BGAnimationLayer to eliminate shared code with ActorFrame
This commit is contained in:
Chris Danford
2004-02-01 03:14:37 +00:00
parent 66a121877c
commit 69fd514b68
20 changed files with 324 additions and 262 deletions
+9 -1
View File
@@ -294,7 +294,7 @@ public:
void FadeOn( float fSleepSeconds, CString sFadeString, float fFadeSeconds ) { Fade(fSleepSeconds,sFadeString,fFadeSeconds,false); };
void FadeOff( float fSleepSeconds, CString sFadeString, float fFadeSeconds ) { Fade(fSleepSeconds,sFadeString,fFadeSeconds,true); };
float Command( CString sCommands ); // return length in seconds to execute command
void Command( CString sCommands ); // return length in seconds to execute command
virtual void HandleCommand( const ParsedCommand &command ); // derivable
static float GetCommandLength( CString command );
@@ -302,6 +302,14 @@ public:
virtual void SetSecondsIntoAnimation( float fSeconds ) {};
virtual int GetNumStates() { return 1; };
//
// BGAnimation stuff
//
virtual void GainingFocus( float fRate, bool bRewindMovie, bool bLoop ) {}
virtual void LosingFocus() {}
virtual void PlayOffCommand() { this->PlayCommand("Off"); }
virtual void PlayCommand( const CString &sCommandName ) {}
protected:
struct TweenInfo