PaletteFaderProcess Class Reference

#include <PaletteFaderProcess.h>

Inheritance diagram for PaletteFaderProcess:

Process List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 PaletteFaderProcess ()
 PaletteFaderProcess (Pentagram::PalTransforms trans, int priority, int frames)
 PaletteFaderProcess (uint32 rgba, bool from, int priority, int frames, bool current)
 PaletteFaderProcess (sint16 from[12], sint16 to[12], int priority, int frames)
virtual ~PaletteFaderProcess (void)
virtual bool run (const uint32 framenum)
 INTRINSIC (I_fadeToPaletteTransform)
 INTRINSIC (I_fadeToBlack)
 INTRINSIC (I_fadeFromWhite)
 INTRINSIC (I_fadeToWhite)
 INTRINSIC (I_fadeFromBlack)
 INTRINSIC (I_lightningBolt)
bool loadData (IDataSource *ids, uint32 version)

Static Public Attributes

static PaletteFaderProcessfader = 0

Protected Member Functions

virtual void saveData (ODataSource *ods)

Private Attributes

int priority
sint32 counter
sint32 max_counter
sint16 old_matrix [12]
sint16 new_matrix [12]

Detailed Description

Definition at line 26 of file PaletteFaderProcess.h.


Constructor & Destructor Documentation

PaletteFaderProcess::PaletteFaderProcess (  ) 

PaletteFaderProcess::PaletteFaderProcess ( Pentagram::PalTransforms  trans,
int  priority,
int  frames 
)

Definition at line 40 of file PaletteFaderProcess.cpp.

References PaletteManager::get_instance(), PaletteManager::getPalette(), PaletteManager::getTransformMatrix(), new_matrix, old_matrix, pal, and PaletteManager::Pal_Game.

PaletteFaderProcess::PaletteFaderProcess ( uint32  rgba,
bool  from,
int  priority,
int  frames,
bool  current 
)

Definition at line 51 of file PaletteFaderProcess.cpp.

References PaletteManager::get_instance(), PaletteManager::getPalette(), PaletteManager::getTransformMatrix(), new_matrix, old_matrix, pal, and PaletteManager::Pal_Game.

PaletteFaderProcess::PaletteFaderProcess ( sint16  from[12],
sint16  to[12],
int  priority,
int  frames 
)

Definition at line 75 of file PaletteFaderProcess.cpp.

References new_matrix, and old_matrix.

PaletteFaderProcess::~PaletteFaderProcess ( void   )  [virtual]

Definition at line 84 of file PaletteFaderProcess.cpp.

References fader.


Member Function Documentation

PaletteFaderProcess::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from Process.

PaletteFaderProcess::INTRINSIC ( I_lightningBolt   ) 

PaletteFaderProcess::INTRINSIC ( I_fadeFromBlack   ) 

PaletteFaderProcess::INTRINSIC ( I_fadeToWhite   ) 

PaletteFaderProcess::INTRINSIC ( I_fadeFromWhite   ) 

PaletteFaderProcess::INTRINSIC ( I_fadeToBlack   ) 

PaletteFaderProcess::INTRINSIC ( I_fadeToPaletteTransform   ) 

bool PaletteFaderProcess::loadData ( IDataSource ids,
uint32  version 
)

load Process data

Reimplemented from Process.

Definition at line 123 of file PaletteFaderProcess.cpp.

References counter, fader, Process::loadData(), max_counter, new_matrix, old_matrix, and priority.

bool PaletteFaderProcess::run ( const uint32  framenum  )  [virtual]

Implements Process.

Definition at line 90 of file PaletteFaderProcess.cpp.

References counter, PaletteManager::get_instance(), max_counter, n, new_matrix, old_matrix, PaletteManager::Pal_Game, Process::terminate(), and PaletteManager::transformPalette().

void PaletteFaderProcess::saveData ( ODataSource ods  )  [protected, virtual]

save the Process data

Reimplemented from Process.

Definition at line 109 of file PaletteFaderProcess.cpp.

References counter, max_counter, new_matrix, old_matrix, priority, Process::saveData(), ODataSource::write2(), and ODataSource::write4().


Member Data Documentation

sint32 PaletteFaderProcess::counter [private]

Definition at line 29 of file PaletteFaderProcess.h.

Referenced by loadData(), run(), and saveData().

PaletteFaderProcess * PaletteFaderProcess::fader = 0 [static]

Definition at line 34 of file PaletteFaderProcess.h.

Referenced by loadData(), and ~PaletteFaderProcess().

sint32 PaletteFaderProcess::max_counter [private]

Definition at line 30 of file PaletteFaderProcess.h.

Referenced by loadData(), run(), and saveData().

sint16 PaletteFaderProcess::new_matrix[12] [private]

Definition at line 32 of file PaletteFaderProcess.h.

Referenced by loadData(), PaletteFaderProcess(), run(), and saveData().

sint16 PaletteFaderProcess::old_matrix[12] [private]

Definition at line 31 of file PaletteFaderProcess.h.

Referenced by loadData(), PaletteFaderProcess(), run(), and saveData().

int PaletteFaderProcess::priority [private]

Definition at line 28 of file PaletteFaderProcess.h.

Referenced by loadData(), and saveData().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:45 2007 for pentagram by  doxygen 1.4.7