MissileTracker Class Reference

#include <MissileTracker.h>

List of all members.

Public Member Functions

 MissileTracker (Item *item, sint32 sx, sint32 sy, sint32 sz, sint32 tx, sint32 ty, sint32 tz, sint32 speed, sint32 gravity)
 MissileTracker (Item *item, sint32 tx, sint32 ty, sint32 tz, sint32 speed, sint32 gravity)
 ~MissileTracker ()
bool isPathClear ()
void launchItem ()

Protected Member Functions

void init (sint32 sx, sint32 sy, sint32 sz, sint32 speed)

Private Attributes

ObjId objid
sint32 destx
sint32 desty
sint32 destz
sint32 speedx
sint32 speedy
sint32 speedz
sint32 gravity
int frames


Detailed Description

Definition at line 24 of file MissileTracker.h.


Constructor & Destructor Documentation

MissileTracker::MissileTracker ( Item item,
sint32  sx,
sint32  sy,
sint32  sz,
sint32  tx,
sint32  ty,
sint32  tz,
sint32  speed,
sint32  gravity 
)

Definition at line 28 of file MissileTracker.cpp.

References destx, desty, destz, Object::getObjId(), gravity, init(), and objid.

MissileTracker::MissileTracker ( Item item,
sint32  tx,
sint32  ty,
sint32  tz,
sint32  speed,
sint32  gravity 
)

Definition at line 41 of file MissileTracker.cpp.

References destx, desty, destz, Item::getLocation(), Object::getObjId(), Item::getParent(), gravity, init(), objid, x, and y.

MissileTracker::~MissileTracker (  ) 

Definition at line 122 of file MissileTracker.cpp.


Member Function Documentation

void MissileTracker::init ( sint32  sx,
sint32  sy,
sint32  sz,
sint32  speed 
) [protected]

Definition at line 58 of file MissileTracker.cpp.

References destx, desty, destz, frames, gravity, pout, speedx, speedy, and speedz.

Referenced by MissileTracker().

bool MissileTracker::isPathClear (  ) 

Definition at line 127 of file MissileTracker.cpp.

References ShapeInfo::flags, frames, World::get_instance(), World::getCurrentMap(), Item::getFootpadWorld(), getItem(), Item::getLocation(), Item::getShapeInfo(), gravity, objid, speedx, speedy, speedz, and CurrentMap::sweepTest().

Referenced by GameMapGump::DraggingItem().

void MissileTracker::launchItem (  ) 

Definition at line 177 of file MissileTracker.cpp.

References getItem(), gravity, Item::hurl(), objid, speedx, speedy, and speedz.

Referenced by GameMapGump::DropItem().


Member Data Documentation

sint32 MissileTracker::destx [private]

Definition at line 43 of file MissileTracker.h.

Referenced by init(), and MissileTracker().

sint32 MissileTracker::desty [private]

Definition at line 43 of file MissileTracker.h.

Referenced by init(), and MissileTracker().

sint32 MissileTracker::destz [private]

Definition at line 43 of file MissileTracker.h.

Referenced by init(), and MissileTracker().

int MissileTracker::frames [private]

Definition at line 46 of file MissileTracker.h.

Referenced by init(), and isPathClear().

sint32 MissileTracker::gravity [private]

Definition at line 45 of file MissileTracker.h.

Referenced by init(), isPathClear(), launchItem(), and MissileTracker().

ObjId MissileTracker::objid [private]

Definition at line 42 of file MissileTracker.h.

Referenced by isPathClear(), launchItem(), and MissileTracker().

sint32 MissileTracker::speedx [private]

Definition at line 44 of file MissileTracker.h.

Referenced by init(), isPathClear(), and launchItem().

sint32 MissileTracker::speedy [private]

Definition at line 44 of file MissileTracker.h.

Referenced by init(), isPathClear(), and launchItem().

sint32 MissileTracker::speedz [private]

Definition at line 44 of file MissileTracker.h.

Referenced by init(), isPathClear(), and launchItem().


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