#include <MissileTracker.h>
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 |
Definition at line 24 of file MissileTracker.h.
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.
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().
sint32 MissileTracker::destx [private] |
sint32 MissileTracker::desty [private] |
sint32 MissileTracker::destz [private] |
int MissileTracker::frames [private] |
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().