ScummVM API documentation
Ultima::Nuvie::ActorPathFinder Class Reference
Inheritance diagram for Ultima::Nuvie::ActorPathFinder:
Ultima::Nuvie::PathFinder Ultima::Nuvie::DirFinder Ultima::Nuvie::CombatPathFinder Ultima::Nuvie::SchedPathFinder

Public Member Functions

 ActorPathFinder (Actor *a, MapCoord g)
 
void set_actor (Actor *a)
 
virtual bool update_location ()
 
virtual void actor_moved ()
 
bool check_loc (const MapCoord &loc) override
 
void get_closest_dir (MapCoord &rel_step)
 
bool get_next_move (MapCoord &step) override
 
- Public Member Functions inherited from Ultima::Nuvie::PathFinder
 PathFinder (const MapCoord &s, const MapCoord &g)
 
void set_search (Path *new_path)
 
virtual void set_start (const MapCoord &s)
 
virtual void set_goal (const MapCoord &g)
 
virtual void set_location (const MapCoord &l)
 
virtual MapCoord get_location ()
 
virtual MapCoord get_goal ()
 
virtual bool reached_goal ()
 
bool check_loc (uint16 x, uint16 y, uint8 z)
 
virtual bool find_path ()
 
virtual bool have_path ()
 
virtual bool is_path_clear ()
 

Protected Member Functions

bool search_towards_target (const MapCoord &g, MapCoord &rel_step)
 
bool check_dir (const MapCoord &loc, MapCoord &rel, sint8 rot=0) override
 
bool check_dir_and_distance (const MapCoord &loc, const MapCoord &g, MapCoord &rel_step, sint8 rotate)
 
- Protected Member Functions inherited from Ultima::Nuvie::PathFinder
void new_search (Path *new_path)
 

Protected Attributes

Actoractor
 
- Protected Attributes inherited from Ultima::Nuvie::PathFinder
MapCoord start
 
MapCoord goal
 
MapCoord loc
 
Pathsearch
 

Additional Inherited Members

- Static Public Member Functions inherited from Ultima::Nuvie::DirFinder
static void get_adjacent_dir (sint8 &xdir, sint8 &ydir, sint8 rotate)
 
static NuvieDir get_nuvie_dir (sint16 xrel, sint16 yrel)
 
static NuvieDir get_nuvie_dir (uint16 sx, uint16 sy, uint16 tx, uint16 ty, uint8 z)
 
static sint8 get_turn_towards_dir (sint16 oxdir, sint16 oydir, sint8 txdir, sint8 tydir)
 
static void get_normalized_dir (const MapCoord &from, const MapCoord &to, sint8 &xdir, sint8 &ydir)
 

The documentation for this class was generated from the following file: