libHSPlasma
Public Types | Public Member Functions | Protected Member Functions | List of all members
plAnimStage Class Reference

#include <plAnimStage.h>

Inheritance diagram for plAnimStage:
plCreatable

Public Types

enum  NotifyType { kNotifyEnter = 0x1, kNotifyLoop = 0x2, kNotifyAdvance = 0x4, kNotifyRegress = 0x8 }
enum  PlayType { kPlayNone, kPlayKey, kPlayAuto, kPlayMax }
enum  AdvanceType {
  kAdvanceNone, kAdvanceOnMove, kAdvanceAuto, kAdvanceOnAnyKey,
  kAdvanceMax
}

Public Member Functions

 plAnimStage ()
virtual void read (hsStream *S, plResManager *mgr)
virtual void write (hsStream *S, plResManager *mgr)
void readAux (hsStream *S)
void writeAux (hsStream *S)
void prcWriteAux (pfPrcHelper *prc)
void prcParseAux (const pfPrcTag *tag)
PlayType getForwardType () const
PlayType getBackType () const
AdvanceType getAdvanceType () const
AdvanceType getRegressType () const
plString getAnimName () const
unsigned char getNotify () const
int getLoops () const
bool doAdvanceTo () const
bool doRegressTo () const
unsigned int getAdvanceTo () const
unsigned int getRegressTo () const
void setForwardType (PlayType fwd)
void setBackType (PlayType back)
void setAdvanceType (AdvanceType adv)
void setRegressType (AdvanceType reg)
void setAnimName (const plString &name)
void setNotify (unsigned char notify)
void setLoops (int loops)
void setAdvanceTo (bool doAdvance, unsigned int advance=0)
void setRegressTo (bool doRegress, unsigned int regress=0)
float getLocalTime () const
float getLength () const
int getCurLoop () const
bool isAttached () const
void setLocalTime (float time)
void setLength (float length)
void setCurLoop (int loop)
void setAttached (bool att)
- Public Member Functions inherited from plCreatable
 plCreatable ()
virtual ~plCreatable ()
virtual short ClassIndex () const =0
short ClassIndex (PlasmaVer ver) const
virtual const char * ClassName () const
virtual bool ClassInstance (short) const
virtual bool isStub () const
virtual void prcWrite (pfPrcHelper *prc)
virtual void prcParse (const pfPrcTag *tag, plResManager *mgr)

Protected Member Functions

virtual void IPrcWrite (pfPrcHelper *prc)
virtual void IPrcParse (const pfPrcTag *tag, plResManager *mgr)

Member Enumeration Documentation

Enumerator:
kAdvanceNone 
kAdvanceOnMove 
kAdvanceAuto 
kAdvanceOnAnyKey 
kAdvanceMax 
Enumerator:
kNotifyEnter 
kNotifyLoop 
kNotifyAdvance 
kNotifyRegress 
Enumerator:
kPlayNone 
kPlayKey 
kPlayAuto 
kPlayMax 

Constructor & Destructor Documentation

plAnimStage::plAnimStage ( )

Member Function Documentation

bool plAnimStage::doAdvanceTo ( ) const
bool plAnimStage::doRegressTo ( ) const
unsigned int plAnimStage::getAdvanceTo ( ) const
AdvanceType plAnimStage::getAdvanceType ( ) const
plString plAnimStage::getAnimName ( ) const
PlayType plAnimStage::getBackType ( ) const
int plAnimStage::getCurLoop ( ) const
PlayType plAnimStage::getForwardType ( ) const
float plAnimStage::getLength ( ) const
float plAnimStage::getLocalTime ( ) const
int plAnimStage::getLoops ( ) const
unsigned char plAnimStage::getNotify ( ) const
unsigned int plAnimStage::getRegressTo ( ) const
AdvanceType plAnimStage::getRegressType ( ) const
virtual void plAnimStage::IPrcParse ( const pfPrcTag tag,
plResManager mgr 
)
protectedvirtual

This must be overloaded by subclasses to parse PRC data specific to the class from the PRC document. It is called once for each tag that is a child to the Creatable tag itself, so subclasses should check for each supported tag and handle it accordingly if it matches. If the tag is not recognized, it should be passed along to the parent class.

Reimplemented from plCreatable.

virtual void plAnimStage::IPrcWrite ( pfPrcHelper prc)
protectedvirtual

This must be overloaded by subclasses to write PRC data specific to the class to the PRC document. Do not write the top-level creatable tag, that is handled by prcWrite().

Implements plCreatable.

bool plAnimStage::isAttached ( ) const
void plAnimStage::prcParseAux ( const pfPrcTag tag)
void plAnimStage::prcWriteAux ( pfPrcHelper prc)
virtual void plAnimStage::read ( hsStream ,
plResManager  
)
virtual

Reads this creatable directly from the stream. If any keys are read, they will be added to the plResManager automatically.

Reimplemented from plCreatable.

void plAnimStage::readAux ( hsStream S)
void plAnimStage::setAdvanceTo ( bool  doAdvance,
unsigned int  advance = 0 
)
void plAnimStage::setAdvanceType ( AdvanceType  adv)
void plAnimStage::setAnimName ( const plString name)
void plAnimStage::setAttached ( bool  att)
void plAnimStage::setBackType ( PlayType  back)
void plAnimStage::setCurLoop ( int  loop)
void plAnimStage::setForwardType ( PlayType  fwd)
void plAnimStage::setLength ( float  length)
void plAnimStage::setLocalTime ( float  time)
void plAnimStage::setLoops ( int  loops)
void plAnimStage::setNotify ( unsigned char  notify)
void plAnimStage::setRegressTo ( bool  doRegress,
unsigned int  regress = 0 
)
void plAnimStage::setRegressType ( AdvanceType  reg)
virtual void plAnimStage::write ( hsStream ,
plResManager  
)
virtual

Writes this creatable directly to the stream. The plResManager is used to manage any key references written by this creatable.

Reimplemented from plCreatable.

void plAnimStage::writeAux ( hsStream S)

The documentation for this class was generated from the following file: