QuickAvatarMoverProcess Class Reference

#include <QuickAvatarMoverProcess.h>

Inheritance diagram for QuickAvatarMoverProcess:

Process List of all members.

Public Member Functions

 QuickAvatarMoverProcess ()
 QuickAvatarMoverProcess (int x, int y, int z, int _dir)
virtual ~QuickAvatarMoverProcess ()
 ENABLE_RUNTIME_CLASSTYPE ()
virtual bool run (const uint32 framenum)
virtual void terminate ()
bool loadData (IDataSource *ids, uint32 version)

Static Public Member Functions

static bool isQuarterSpeed ()
static bool isClipping ()
static void setQuarterSpeed (bool q)
static void toggleClipping ()
static void terminateMover (int _dir)
static void startMover (int x, int y, int z, int _dir)
static void ConCmd_startMoveUp (const Console::ArgvType &argv)
static void ConCmd_startMoveDown (const Console::ArgvType &argv)
static void ConCmd_startMoveLeft (const Console::ArgvType &argv)
static void ConCmd_startMoveRight (const Console::ArgvType &argv)
static void ConCmd_startAscend (const Console::ArgvType &argv)
static void ConCmd_startDescend (const Console::ArgvType &argv)
static void ConCmd_stopMoveUp (const Console::ArgvType &argv)
static void ConCmd_stopMoveDown (const Console::ArgvType &argv)
static void ConCmd_stopMoveLeft (const Console::ArgvType &argv)
static void ConCmd_stopMoveRight (const Console::ArgvType &argv)
static void ConCmd_stopAscend (const Console::ArgvType &argv)
static void ConCmd_stopDescend (const Console::ArgvType &argv)
static void ConCmd_toggleQuarterSpeed (const Console::ArgvType &argv)
static void ConCmd_toggleClipping (const Console::ArgvType &argv)

Protected Member Functions

virtual void saveData (ODataSource *ods)

Protected Attributes

int dx
int dy
int dz
int dir

Static Protected Attributes

static ProcId amp [6] = { 0, 0, 0, 0, 0, 0 }
static bool clipping = false
static bool quarter = false

Detailed Description

Definition at line 24 of file QuickAvatarMoverProcess.h.


Constructor & Destructor Documentation

QuickAvatarMoverProcess::QuickAvatarMoverProcess (  ) 

Definition at line 40 of file QuickAvatarMoverProcess.cpp.

Referenced by startMover().

QuickAvatarMoverProcess::QuickAvatarMoverProcess ( int  x,
int  y,
int  z,
int  _dir 
)

Definition at line 44 of file QuickAvatarMoverProcess.cpp.

References amp, dir, Process::getPid(), and terminateMover().

QuickAvatarMoverProcess::~QuickAvatarMoverProcess (  )  [virtual]

Definition at line 51 of file QuickAvatarMoverProcess.cpp.


Member Function Documentation

void QuickAvatarMoverProcess::ConCmd_startAscend ( const Console::ArgvType argv  )  [static]

Definition at line 216 of file QuickAvatarMoverProcess.cpp.

References startMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_startDescend ( const Console::ArgvType argv  )  [static]

Definition at line 221 of file QuickAvatarMoverProcess.cpp.

References startMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_startMoveDown ( const Console::ArgvType argv  )  [static]

Definition at line 201 of file QuickAvatarMoverProcess.cpp.

References startMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_startMoveLeft ( const Console::ArgvType argv  )  [static]

Definition at line 206 of file QuickAvatarMoverProcess.cpp.

References startMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_startMoveRight ( const Console::ArgvType argv  )  [static]

Definition at line 211 of file QuickAvatarMoverProcess.cpp.

References startMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_startMoveUp ( const Console::ArgvType argv  )  [static]

Definition at line 196 of file QuickAvatarMoverProcess.cpp.

References startMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_stopAscend ( const Console::ArgvType argv  )  [static]

Definition at line 244 of file QuickAvatarMoverProcess.cpp.

References terminateMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_stopDescend ( const Console::ArgvType argv  )  [static]

Definition at line 249 of file QuickAvatarMoverProcess.cpp.

References terminateMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_stopMoveDown ( const Console::ArgvType argv  )  [static]

Definition at line 230 of file QuickAvatarMoverProcess.cpp.

References terminateMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_stopMoveLeft ( const Console::ArgvType argv  )  [static]

Definition at line 234 of file QuickAvatarMoverProcess.cpp.

References terminateMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_stopMoveRight ( const Console::ArgvType argv  )  [static]

Definition at line 239 of file QuickAvatarMoverProcess.cpp.

References terminateMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_stopMoveUp ( const Console::ArgvType argv  )  [static]

Definition at line 225 of file QuickAvatarMoverProcess.cpp.

References terminateMover().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_toggleClipping ( const Console::ArgvType argv  )  [static]

Definition at line 259 of file QuickAvatarMoverProcess.cpp.

References isClipping(), pout, and toggleClipping().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

void QuickAvatarMoverProcess::ConCmd_toggleQuarterSpeed ( const Console::ArgvType argv  )  [static]

Definition at line 254 of file QuickAvatarMoverProcess.cpp.

References isQuarterSpeed(), and setQuarterSpeed().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

QuickAvatarMoverProcess::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from Process.

static bool QuickAvatarMoverProcess::isClipping (  )  [inline, static]

Definition at line 39 of file QuickAvatarMoverProcess.h.

References clipping.

Referenced by ConCmd_toggleClipping().

static bool QuickAvatarMoverProcess::isQuarterSpeed (  )  [inline, static]

Definition at line 38 of file QuickAvatarMoverProcess.h.

References quarter.

Referenced by ConCmd_toggleQuarterSpeed().

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

load Process data

Reimplemented from Process.

Definition at line 181 of file QuickAvatarMoverProcess.cpp.

References amp, dir, Process::loadData(), and Process::terminateDeferred().

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

Implements Process.

Definition at line 55 of file QuickAvatarMoverProcess.cpp.

References clipping, Item::collideMove(), dx, dy, dz, ShapeInfo::flags, Process::flags, World::get_instance(), GUIApp::get_instance(), World::getCurrentMap(), Item::getFootpadWorld(), Item::getLocation(), getMainActor(), Item::getShapeInfo(), if(), CurrentMap::isValidPosition(), quarter, terminate(), x, and y.

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

save the Process data

Reimplemented from Process.

Definition at line 173 of file QuickAvatarMoverProcess.cpp.

References dir, Process::saveData(), and ODataSource::write4().

static void QuickAvatarMoverProcess::setQuarterSpeed ( bool  q  )  [inline, static]

Definition at line 40 of file QuickAvatarMoverProcess.h.

References quarter.

Referenced by ConCmd_toggleQuarterSpeed().

void QuickAvatarMoverProcess::startMover ( int  x,
int  y,
int  z,
int  _dir 
) [static]

Definition at line 161 of file QuickAvatarMoverProcess.cpp.

References Kernel::addProcess(), Kernel::get_instance(), GUIApp::get_instance(), GUIApp::isAvatarInStasis(), pout, and QuickAvatarMoverProcess().

Referenced by ConCmd_startAscend(), ConCmd_startDescend(), ConCmd_startMoveDown(), ConCmd_startMoveLeft(), ConCmd_startMoveRight(), and ConCmd_startMoveUp().

void QuickAvatarMoverProcess::terminate (  )  [virtual]

terminate the process. This wakes up all processes waiting for it.

Reimplemented from Process.

Definition at line 142 of file QuickAvatarMoverProcess.cpp.

References amp, dir, and Process::terminate().

Referenced by run(), and terminateMover().

void QuickAvatarMoverProcess::terminateMover ( int  _dir  )  [static]

Definition at line 148 of file QuickAvatarMoverProcess.cpp.

References amp, Kernel::get_instance(), Kernel::getProcess(), Process::is_terminated(), Kernel::kernel, and terminate().

Referenced by ConCmd_stopAscend(), ConCmd_stopDescend(), ConCmd_stopMoveDown(), ConCmd_stopMoveLeft(), ConCmd_stopMoveRight(), ConCmd_stopMoveUp(), and QuickAvatarMoverProcess().

static void QuickAvatarMoverProcess::toggleClipping (  )  [inline, static]

Definition at line 41 of file QuickAvatarMoverProcess.h.

References clipping.

Referenced by ConCmd_toggleClipping().


Member Data Documentation

ProcId QuickAvatarMoverProcess::amp = { 0, 0, 0, 0, 0, 0 } [static, protected]

Definition at line 68 of file QuickAvatarMoverProcess.h.

Referenced by loadData(), QuickAvatarMoverProcess(), terminate(), and terminateMover().

bool QuickAvatarMoverProcess::clipping = false [static, protected]

Definition at line 69 of file QuickAvatarMoverProcess.h.

Referenced by isClipping(), run(), and toggleClipping().

int QuickAvatarMoverProcess::dir [protected]

Definition at line 67 of file QuickAvatarMoverProcess.h.

Referenced by loadData(), QuickAvatarMoverProcess(), saveData(), and terminate().

int QuickAvatarMoverProcess::dx [protected]

Definition at line 67 of file QuickAvatarMoverProcess.h.

Referenced by run().

int QuickAvatarMoverProcess::dy [protected]

Definition at line 67 of file QuickAvatarMoverProcess.h.

Referenced by run().

int QuickAvatarMoverProcess::dz [protected]

Definition at line 67 of file QuickAvatarMoverProcess.h.

Referenced by run().

bool QuickAvatarMoverProcess::quarter = false [static, protected]

Definition at line 70 of file QuickAvatarMoverProcess.h.

Referenced by isQuarterSpeed(), run(), and setQuarterSpeed().


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