ScummVM API documentation
Ultima::Nuvie::PartyPathFinder Class Reference

Public Member Functions

 PartyPathFinder (Party *p)
 
bool follow_passA (uint32 p)
 
bool follow_passB (uint32 p)
 
void seek_leader (uint32 p)
 
void end_seek (uint32 p)
 
bool move_member (uint32 member_num, sint16 relx, sint16 rely, bool ignore_position=false, bool can_bump=true, bool avoid_danger_tiles=true)
 
bool bump_member (uint32 bumped_member_num, uint32 member_num)
 
bool is_seeking (uint32 member_num)
 
bool is_contiguous (uint32 member_num, const MapCoord &from)
 
bool is_contiguous (uint32 member_num)
 
bool is_behind_target (uint32 member_num)
 
bool is_at_target (uint32 p)
 
void get_target_dir (uint32 p, sint8 &rel_x, sint8 &rel_y)
 
void get_forward_dir (sint8 &vec_x, sint8 &vec_y)
 
void get_last_move (sint8 &vec_x, sint8 &vec_y)
 

Protected Member Functions

bool try_moving_to_leader (uint32 p, bool ignore_position)
 
bool try_moving_forward (uint32 p)
 
bool try_moving_to_target (uint32 p, bool avoid_damage_tiles=false)
 
bool try_all_directions (uint32 p, MapCoord target_loc)
 
bool try_moving_sideways (uint32 p)
 
bool leader_moved_away (uint32 p)
 
bool leader_moved_diagonally ()
 
bool leader_moved ()
 
Std::vector< MapCoordget_neighbor_tiles (const MapCoord &center, const MapCoord &target)
 
struct PartyMember get_member (uint32 p)
 
sint8 get_leader ()
 

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