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

Public Member Functions

 CombatPathFinder (Actor *a)
 
 CombatPathFinder (Actor *a, Actor *t)
 
bool set_flee_mode (Actor *actor)
 
bool set_chase_mode (Actor *actor)
 
bool set_mode (CombatPathFinderMode mode, Actor *actor)
 
void set_distance (uint8 dist)
 
bool get_next_move (MapCoord &step) override
 
bool reached_goal () override
 
- Public Member Functions inherited from Ultima::Nuvie::ActorPathFinder
 ActorPathFinder (Actor *a, MapCoord g)
 
void set_actor (Actor *a)
 
virtual void actor_moved ()
 
bool check_loc (const MapCoord &loc) override
 
void get_closest_dir (MapCoord &rel_step)
 
- 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 ()
 
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 update_location () override
 
- Protected Member Functions inherited from Ultima::Nuvie::ActorPathFinder
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

Actortarget
 
CombatPathFinderMode target_mode
 
uint8 max_dist
 
- Protected Attributes inherited from Ultima::Nuvie::ActorPathFinder
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: