#include <iostream>
#include <string>
#include "party.h"
#include "actors.h"
#include "gamewin.h"
#include "frameseq.h"
#include "dir.h"
Include dependency graph for party.cc:
Go to the source code of this file.
Functions | |
Tile_coord | Get_step_tile (Tile_coord pos, Tile_coord dest, int dir) |
static Actor * | Find_member_blocking (Tile_coord pos, int first) |
int | Get_dir_from (Actor *npc, Tile_coord &from) |
bool | Clear_to_leader (Actor *npc, Actor *leader, Tile_coord from) |
static int | Get_cost (Actor *npc, Actor *leader, Tile_coord to, Actor **find_blocking=0) |
static bool | Take_best_step (Actor *npc, Actor *leader, Tile_coord &pos, int frame, int dir) |
bool | Is_step_okay (Actor *npc, Actor *leader, Tile_coord to) |
Variables | |
static int | followers [8+1][2] |
static int | left_offsets [4][2] |
static int | right_offsets [4][2] |
const int | max_cost = 10000 |
bool Clear_to_leader | ( | Actor * | npc, | |
Actor * | leader, | |||
Tile_coord | from | |||
) | [inline] |
Definition at line 409 of file party.cc.
References Tile_coord::distance(), Find_member_blocking(), Get_dir_from(), Tile_coord::get_neighbor(), Game_object::get_tile(), Exult_server::npc, and Tile_coord::tz.
Referenced by Get_cost(), and Is_step_okay().
Here is the call graph for this function:
static Actor* Find_member_blocking | ( | Tile_coord | pos, | |
int | first | |||
) | [static] |
Definition at line 370 of file party.cc.
References Party_manager::get_count(), Game_window::get_instance(), Party_manager::get_member(), Game_window::get_npc(), Game_window::get_party_man(), gwin, Exult_server::npc, and Tile_coord::tz.
Referenced by Clear_to_leader(), and Get_cost().
Here is the call graph for this function:
static int Get_cost | ( | Actor * | npc, | |
Actor * | leader, | |||
Tile_coord | to, | |||
Actor ** | find_blocking = 0 | |||
) | [static] |
Definition at line 445 of file party.cc.
References Clear_to_leader(), Tile_coord::delta(), Find_member_blocking(), Game_object::get_tile(), Exult_server::npc, Tile_coord::tx, Tile_coord::ty, and Tile_coord::tz.
Referenced by Take_best_step().
Here is the call graph for this function:
int Get_dir_from | ( | Actor * | npc, | |
Tile_coord & | from | |||
) | [inline] |
Definition at line 395 of file party.cc.
References Get_direction(), Exult_server::npc, Tile_coord::tx, and Tile_coord::ty.
Referenced by Clear_to_leader(), and Party_manager::step().
Here is the call graph for this function:
Tile_coord Get_step_tile | ( | Tile_coord | pos, | |
Tile_coord | dest, | |||
int | dir | |||
) | [inline] |
Definition at line 344 of file party.cc.
References Tile_coord::tx, and Tile_coord::ty.
Referenced by Party_manager::step().
bool Is_step_okay | ( | Actor * | npc, | |
Actor * | leader, | |||
Tile_coord | to | |||
) | [inline] |
Definition at line 536 of file party.cc.
References Clear_to_leader(), Game_object::get_lift(), Game_object::get_tile(), and Exult_server::npc.
Referenced by Party_manager::step().
Here is the call graph for this function:
static bool Take_best_step | ( | Actor * | npc, | |
Actor * | leader, | |||
Tile_coord & | pos, | |||
int | frame, | |||
int | dir | |||
) | [static] |
Definition at line 491 of file party.cc.
References Get_cost(), Tile_coord::get_neighbor(), Game_object::get_tile(), Ireg_game_object::move(), Exult_server::npc, and Container_game_object::remove_this().
Referenced by Party_manager::step().
Here is the call graph for this function:
int followers[8+1][2] [static] |
int left_offsets[4][2] [static] |
const int max_cost = 10000 |
Definition at line 442 of file party.cc.
Referenced by Find_path(), Monster_pathfinder_client::get_max_cost(), Fast_pathfinder_client::get_max_cost(), Actor_pathfinder_client::get_max_cost(), and Pathfinder_client::get_max_cost().
int right_offsets[4][2] [static] |