PathfindingState Struct Reference

#include <Pathfinder.h>

List of all members.

Public Member Functions

void load (Actor *actor)
bool checkPoint (sint32 x_, sint32 y_, sint32 z_, int range)
bool checkItem (Item *item, int xyRange, int zRange)
bool checkHit (Actor *actor, Actor *target)

Public Attributes

sint32 x
sint32 y
sint32 z
Animation::Sequence lastanim
uint32 direction
bool flipped
bool firststep
bool combat


Detailed Description

Definition at line 30 of file Pathfinder.h.


Member Function Documentation

bool PathfindingState::checkHit ( Actor actor,
Actor target 
)

Definition at line 91 of file Pathfinder.cpp.

References Animation::attack, Item::getDirToItemCentre(), Object::getObjId(), AnimationTracker::hitSomething(), AnimationTracker::init(), pout, and AnimationTracker::step().

Referenced by Pathfinder::checkTarget().

bool PathfindingState::checkItem ( Item item,
int  xyRange,
int  zRange 
)

Definition at line 64 of file Pathfinder.cpp.

References Item::getFootpadWorld(), Item::getLocationAbsolute(), x, and y.

Referenced by Pathfinder::checkTarget().

bool PathfindingState::checkPoint ( sint32  x_,
sint32  y_,
sint32  z_,
int  range 
)

Definition at line 57 of file Pathfinder.cpp.

References x, y, and z.

Referenced by Pathfinder::checkTarget().

void PathfindingState::load ( Actor actor  ) 

Definition at line 47 of file Pathfinder.cpp.

References Actor::ACT_FIRSTSTEP, combat, direction, firststep, Item::FLG_FLIPPED, flipped, Actor::getActorFlags(), Actor::getDir(), Item::getFlags(), Actor::getLastAnim(), Item::getLocation(), Actor::isInCombat(), lastanim, x, y, and z.

Referenced by Pathfinder::init().


Member Data Documentation

bool PathfindingState::combat

Definition at line 37 of file Pathfinder.h.

Referenced by Pathfinder::expandNode(), load(), and Pathfinder::setTarget().

uint32 PathfindingState::direction

Definition at line 34 of file Pathfinder.h.

Referenced by Pathfinder::expandNode(), AnimationTracker::init(), load(), and Pathfinder::newNode().

bool PathfindingState::firststep

Definition at line 36 of file Pathfinder.h.

Referenced by AnimationTracker::init(), load(), and AnimationTracker::updateState().

bool PathfindingState::flipped

Definition at line 35 of file Pathfinder.h.

Referenced by AnimationTracker::init(), load(), and AnimationTracker::updateState().

Animation::Sequence PathfindingState::lastanim

Definition at line 33 of file Pathfinder.h.

Referenced by Pathfinder::expandNode(), AnimationTracker::init(), and load().

sint32 PathfindingState::x

Definition at line 32 of file Pathfinder.h.

Referenced by checkItem(), checkPoint(), Pathfinder::costHeuristic(), drawedge(), drawpath(), Pathfinder::expandNode(), AnimationTracker::init(), load(), Pathfinder::newNode(), and AnimationTracker::updateState().

sint32 PathfindingState::y

Definition at line 32 of file Pathfinder.h.

Referenced by checkItem(), checkPoint(), Pathfinder::costHeuristic(), drawedge(), drawpath(), Pathfinder::expandNode(), AnimationTracker::init(), load(), Pathfinder::newNode(), and AnimationTracker::updateState().

sint32 PathfindingState::z

Definition at line 32 of file Pathfinder.h.

Referenced by checkPoint(), drawedge(), drawpath(), Pathfinder::expandNode(), AnimationTracker::init(), load(), Pathfinder::newNode(), and AnimationTracker::updateState().


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