Go to the source code of this file.
Enumerations | |
enum | Direction { north = 0, northeast = 1, east = 2, southeast = 3, south = 4, southwest = 5, west = 6, northwest = 7 } |
Functions | |
Direction | Get_direction (int deltay, int deltax) |
Direction | Get_WorldDirection (int deltay, int deltax) |
Variables | |
const int | x_fact [] = { 0, +1, +1, +1, 0, -1, -1, -1 } |
const int | y_fact [] = { -1, -1, 0, +1, +1, +1, 0, -1 } |
enum Direction |
Definition at line 29 of file Direction.h.
Direction Get_direction | ( | int | deltay, | |
int | deltax | |||
) | [inline] |
Direction Get_WorldDirection | ( | int | deltay, | |
int | deltax | |||
) | [inline] |
Definition at line 78 of file Direction.h.
References east, north, northeast, northwest, south, southeast, southwest, and west.
Referenced by GameMapGump::DropItem(), Item::explode(), Item::getDirToItemCentre(), and FireballProcess::run().
const int x_fact[] = { 0, +1, +1, +1, 0, -1, -1, -1 } |
Definition at line 44 of file Direction.h.
Referenced by AnimationTracker::checkWeaponHit(), ActorAnimProcess::doHitSpecial(), ActorAnimProcess::doSpecial(), AnimationTracker::evaluateMaxAnimTravel(), GrantPeaceProcess::run(), FireballProcess::run(), CurrentMap::scanForValidPosition(), AnimationTracker::setTargetedMode(), and AnimationTracker::step().
const int y_fact[] = { -1, -1, 0, +1, +1, +1, 0, -1 } |
Definition at line 45 of file Direction.h.
Referenced by AnimationTracker::checkWeaponHit(), ActorAnimProcess::doHitSpecial(), ActorAnimProcess::doSpecial(), AnimationTracker::evaluateMaxAnimTravel(), GrantPeaceProcess::run(), FireballProcess::run(), CurrentMap::scanForValidPosition(), AnimationTracker::setTargetedMode(), and AnimationTracker::step().