combat.cc File Reference

#include "combat.h"
#include "combat_opts.h"
#include "gamewin.h"
#include "gameclk.h"
#include "gamemap.h"
#include "actors.h"
#include "paths.h"
#include "Astar.h"
#include "actions.h"
#include "items.h"
#include "effects.h"
#include "Audio.h"
#include "ready.h"
#include "game.h"
#include "monstinf.h"
#include "ucmachine.h"
#include "Gump_manager.h"
#include "spellbook.h"

Include dependency graph for combat.cc:

Go to the source code of this file.

Functions

bool In_ammo_family (int shnum, int family)
bool Can_teleport (Actor *npc)
bool Off_screen (Game_window *gwin, Game_object *npc)
static int Swap_weapons (Actor *npc)
int Need_new_opponent (Game_window *gwin, Actor *npc)
static int Use_ammo (Actor *npc, int ammo, int proj)
void Ready_duel_weapon (Actor *npc, int wshape, int ashape)

Variables

bool combat_trace


Function Documentation

bool Can_teleport ( Actor npc  )  [inline]

Definition at line 134 of file combat.cc.

References Exult_server::npc.

Referenced by Combat_schedule::approach_foe().

bool In_ammo_family ( int  shnum,
int  family 
)

Definition at line 65 of file combat.cc.

References Shape_info::get_ammo_info(), Ammo_info::get_family_shape(), and ShapeID::get_info().

Referenced by Actor::ready_ammo(), Combat_schedule::start_strike(), Swap_weapons(), and Use_ammo().

Here is the call graph for this function:

int Need_new_opponent ( Game_window gwin,
Actor npc 
) [inline]

Definition at line 786 of file combat.cc.

References Game_object::as_actor(), Game_object::get_flag(), gwin, Obj_flags::invisible, Actor::is_dead(), Exult_server::npc, and Off_screen().

Referenced by Combat_schedule::now_what().

Here is the call graph for this function:

bool Off_screen ( Game_window gwin,
Game_object npc 
) [inline]

Definition at line 192 of file combat.cc.

References Rectangle::enlarge(), Game_window::get_win_tile_rect(), gwin, Rectangle::has_point(), Exult_server::npc, Tile_coord::tx, and Tile_coord::ty.

Referenced by Combat_schedule::approach_foe(), and Need_new_opponent().

Here is the call graph for this function:

void Ready_duel_weapon ( Actor npc,
int  wshape,
int  ashape 
)

Definition at line 1098 of file combat.cc.

References Actor::ammo, c_any_framenum, c_any_qual, Game_map::create_ireg_object(), Game_window::get_instance(), Game_window::get_map(), ShapeID::get_shapenum(), Actor::lhand, Game_object::modify_quantity(), Exult_server::npc, and Game_object::remove_this().

Referenced by Duel_schedule::find_opponents().

Here is the call graph for this function:

static int Swap_weapons ( Actor npc  )  [static]

Definition at line 531 of file combat.cc.

References Actor::ammo, Actor::back2h_spot, Actor::belt, Weapon_info::get_ammo_consumed(), ShapeID::get_info(), ShapeID::get_shapenum(), In_ammo_family(), Exult_server::info, Actor::lhand, Exult_server::npc, Actor::rhand, and two_handed_weapon.

Referenced by Combat_schedule::start_strike().

Here is the call graph for this function:

static int Use_ammo ( Actor npc,
int  ammo,
int  proj 
) [static]

Definition at line 811 of file combat.cc.

References Actor::ammo, Game_object::get_quantity(), ShapeID::get_shapenum(), In_ammo_family(), Game_object::modify_quantity(), and Exult_server::npc.

Referenced by Combat_schedule::now_what().

Here is the call graph for this function:


Variable Documentation

bool combat_trace

Definition at line 116 of file exult.cc.


Generated on Mon Jul 9 14:43:04 2007 for ExultEngine by  doxygen 1.5.1