ScummVM API documentation
Ultima::Nuvie::SeekPath Class Reference
Inheritance diagram for Ultima::Nuvie::SeekPath:
Ultima::Nuvie::Path

Public Member Functions

sint32 step_cost (const MapCoord &c1, const MapCoord &c2) override
 
bool path_search (const MapCoord &start, const MapCoord &goal) override
 
void delete_path ()
 
bool trace_obstacle (MapCoord line, sint32 deltax, sint32 deltay, sint32 xdir, sint32 ydir, Std::vector< MapCoord > *scan)
 
bool get_obstacle_tracer (const MapCoord &start, sint32 xdir, sint32 ydir, sint32 &Axdir, sint32 &Aydir, sint32 &Bxdir, sint32 &Bydir)
 
- Public Member Functions inherited from Ultima::Nuvie::Path
void set_pathfinder (PathFinder *pathfinder)
 
void delete_path ()
 
virtual bool have_path ()
 
virtual uint32 path_cost_est (const MapCoord &s, const MapCoord &g)
 
virtual uint32 get_max_score (uint32 cost)
 
virtual const MapCoordget_first_step ()
 
virtual const MapCoordget_last_step ()
 
virtual const MapCoordget_step (uint32 step_index)
 
virtual void get_path (MapCoord **path_start, uint32 &path_size)
 
uint32 get_num_steps ()
 
virtual bool remove_first_step ()
 

Protected Member Functions

void create_path (const MapCoord &start, const MapCoord &goal)
 
Std::vector< MapCoord > * get_best_scan (const MapCoord &start, const MapCoord &goal)
 
void delete_nodes ()
 
bool trace_check_obstacle (bool &turned, MapCoord &line, sint32 &deltax, sint32 &deltay, sint32 &xdir, sint32 &ydir, Std::vector< MapCoord > *scan)
 
void trace_around_corner (MapCoord &line, sint32 &deltax, sint32 &deltay, sint32 &xdir, sint32 &ydir, Std::vector< MapCoord > *scan)
 
- Protected Member Functions inherited from Ultima::Nuvie::Path
void add_step (const MapCoord &loc)
 
bool check_dir (const MapCoord &loc, MapCoord &rel)
 
bool check_loc (const MapCoord &loc)
 
void set_path_size (int alloc_size)
 

Protected Attributes

Std::vector< MapCoordA_scan
 
Std::vector< MapCoordB_scan
 
- Protected Attributes inherited from Ultima::Nuvie::Path
MapCoordpath
 
uint32 step_count
 
uint32 path_size
 
PathFinderpf
 

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