Direction.h File Reference

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 }


Enumeration Type Documentation

enum Direction

Enumerator:
north 
northeast 
east 
southeast 
south 
southwest 
west 
northwest 

Definition at line 29 of file Direction.h.


Function Documentation

Direction Get_direction ( int  deltay,
int  deltax 
) [inline]

Definition at line 56 of file Direction.h.

References east, north, northeast, northwest, south, southeast, southwest, and west.

Referenced by GUIApp::getMouseDirection().

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().


Variable Documentation

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().


Generated on Fri Jul 27 22:28:00 2007 for pentagram by  doxygen 1.4.7