2002-11-16 08:07:38 +00:00
|
|
|
#ifndef BGANIMATION_H
|
|
|
|
|
#define BGANIMATION_H
|
2002-09-29 05:06:18 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: BGAnimation
|
|
|
|
|
|
2004-02-01 03:14:37 +00:00
|
|
|
Desc: An ActorFrame that loads itself
|
2002-09-29 05:06:18 +00:00
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Ben Nordstrom
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
2004-01-25 22:22:40 +00:00
|
|
|
#include "ActorScroller.h"
|
2002-09-29 05:06:18 +00:00
|
|
|
|
2004-02-01 03:14:37 +00:00
|
|
|
class BGAnimation : public ActorScroller
|
2002-09-29 05:06:18 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2003-11-05 03:56:37 +00:00
|
|
|
BGAnimation( bool Generic=false );
|
2002-09-29 05:06:18 +00:00
|
|
|
virtual ~BGAnimation();
|
|
|
|
|
|
|
|
|
|
void Unload();
|
|
|
|
|
|
|
|
|
|
void LoadFromStaticGraphic( CString sPath );
|
2003-03-10 02:46:01 +00:00
|
|
|
void LoadFromAniDir( CString sAniDir );
|
2003-04-14 04:10:01 +00:00
|
|
|
void LoadFromMovie( CString sMoviePath );
|
2003-03-10 02:46:01 +00:00
|
|
|
void LoadFromVisualization( CString sMoviePath );
|
2002-09-29 05:06:18 +00:00
|
|
|
|
2003-11-07 20:43:03 +00:00
|
|
|
float GetLengthSeconds() const { return m_fLengthSeconds; }
|
2003-03-05 08:48:35 +00:00
|
|
|
|
2002-09-29 05:06:18 +00:00
|
|
|
protected:
|
2003-03-05 02:52:40 +00:00
|
|
|
float m_fLengthSeconds;
|
2003-11-05 03:56:37 +00:00
|
|
|
bool m_bGeneric;
|
2002-09-29 05:06:18 +00:00
|
|
|
};
|
|
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|