ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <chore.h>

Inheritance diagram for Grim::Chore:
Collaboration diagram for Grim::Chore:

List of all members.

Public Member Functions

 Chore (char name[32], int id, Costume *owner, int length, int numTracks)
virtual ~Chore ()
void load (TextSplitter &ts)
virtual void play (uint msecs)
virtual void playLooping (uint msecs)
void setLooping (bool val)
virtual void stop (uint msecs)
virtual void update (uint time)
void setLastFrame ()
void fadeIn (uint msecs)
void fadeOut (uint msecs)
void setPaused (bool paused)
bool isPlaying ()
bool isPaused ()
bool isLooping ()
void advance (uint msecs)
const char * getName () const
int getChoreId ()
CostumegetOwner ()
virtual void saveState (SaveGame *state) const
virtual void restoreState (SaveGame *state)

Protected Member Functions

void setKeys (int startTime, int stopTime)
virtual void fade (Animation::FadeMode, uint msecs)
ComponentgetComponentForTrack (int i) const

Protected Attributes

Costume_owner
int _choreId
int _length
int _numTracks
ChoreTrack_tracks
char _name [32]
bool _hasPlayed
bool _playing
bool _looping
bool _paused
int _currTime

Friends

class EMICostume

Detailed Description

Definition at line 46 of file chore.h.


Constructor & Destructor Documentation

Grim::Chore::Chore ( char  name[32],
int  id,
Costume owner,
int  length,
int  numTracks 
)

Definition at line 34 of file chore.cpp.

Grim::Chore::~Chore (  )  [virtual]

Definition at line 42 of file chore.cpp.


Member Function Documentation

void Grim::Chore::advance ( uint  msecs  ) 

Definition at line 219 of file chore.cpp.

void Grim::Chore::fade ( Animation::FadeMode  mode,
uint  msecs 
) [protected, virtual]

Reimplemented in Grim::EMIChore.

Definition at line 178 of file chore.cpp.

void Grim::Chore::fadeIn ( uint  msecs  ) 

Definition at line 198 of file chore.cpp.

void Grim::Chore::fadeOut ( uint  msecs  ) 

Definition at line 202 of file chore.cpp.

int Grim::Chore::getChoreId (  )  [inline]

Definition at line 70 of file chore.h.

Component * Grim::Chore::getComponentForTrack ( int  i  )  const [protected]

Definition at line 92 of file chore.cpp.

const char* Grim::Chore::getName (  )  const [inline]

Definition at line 68 of file chore.h.

Costume* Grim::Chore::getOwner (  )  [inline]

Definition at line 72 of file chore.h.

bool Grim::Chore::isLooping (  )  [inline]

Definition at line 64 of file chore.h.

bool Grim::Chore::isPaused (  )  [inline]

Definition at line 63 of file chore.h.

bool Grim::Chore::isPlaying (  )  [inline]

Definition at line 62 of file chore.h.

void Grim::Chore::load ( TextSplitter ts  ) 

Definition at line 52 of file chore.cpp.

void Grim::Chore::play ( uint  msecs  )  [virtual]

Definition at line 66 of file chore.cpp.

void Grim::Chore::playLooping ( uint  msecs  )  [virtual]

Definition at line 79 of file chore.cpp.

void Grim::Chore::restoreState ( SaveGame state  )  [virtual]

Reimplemented in Grim::EMIChore.

Definition at line 240 of file chore.cpp.

void Grim::Chore::saveState ( SaveGame state  )  const [virtual]

Reimplemented in Grim::EMIChore.

Definition at line 232 of file chore.cpp.

void Grim::Chore::setKeys ( int  startTime,
int  stopTime 
) [protected]

Definition at line 113 of file chore.cpp.

void Grim::Chore::setLastFrame (  ) 

Definition at line 128 of file chore.cpp.

void Grim::Chore::setLooping ( bool  val  )  [inline]

Definition at line 54 of file chore.h.

void Grim::Chore::setPaused ( bool  paused  ) 

Definition at line 208 of file chore.cpp.

void Grim::Chore::stop ( uint  msecs  )  [virtual]

Reimplemented in Grim::EMIChore.

Definition at line 99 of file chore.cpp.

void Grim::Chore::update ( uint  time  )  [virtual]

Reimplemented in Grim::EMIChore.

Definition at line 153 of file chore.cpp.


Friends And Related Function Documentation

friend class EMICostume [friend]

Definition at line 92 of file chore.h.


Member Data Documentation

int Grim::Chore::_choreId [protected]

Definition at line 83 of file chore.h.

int Grim::Chore::_currTime [protected]

Definition at line 90 of file chore.h.

bool Grim::Chore::_hasPlayed [protected]

Definition at line 89 of file chore.h.

int Grim::Chore::_length [protected]

Definition at line 84 of file chore.h.

bool Grim::Chore::_looping [protected]

Definition at line 89 of file chore.h.

char Grim::Chore::_name[32] [protected]

Definition at line 87 of file chore.h.

int Grim::Chore::_numTracks [protected]

Definition at line 85 of file chore.h.

Definition at line 81 of file chore.h.

bool Grim::Chore::_paused [protected]

Definition at line 89 of file chore.h.

bool Grim::Chore::_playing [protected]

Definition at line 89 of file chore.h.

Definition at line 86 of file chore.h.


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


Generated on Sat Mar 16 2019 05:05:53 for ResidualVM by doxygen 1.7.1
curved edge   curved edge