objs.cc File Reference

#include "objs.h"
#include "chunks.h"
#include "objiter.h"
#include "egg.h"
#include "gamewin.h"
#include "gamemap.h"
#include "actors.h"
#include "ucmachine.h"
#include "items.h"
#include "dir.h"
#include "ordinfo.h"
#include "game.h"
#include "Gump_manager.h"
#include "effects.h"
#include "databuf.h"
#include <cstring>
#include <cstdio>
#include <algorithm>
#include "find_nearby.h"

Include dependency graph for objs.cc:

Go to the source code of this file.

Classes

class  Object_closest_sorter

Defines

#define FN_VECTOR   Egg_vector
#define FN_OBJECT   Egg_object
#define FN_CAST   ->as_egg()
#define FN_VECTOR   Actor_vector
#define FN_OBJECT   Actor
#define FN_CAST   ->as_actor()
#define FN_VECTOR   Game_object_vector
#define FN_OBJECT   Game_object
#define FN_CAST

Functions

static int Has_quantity (int shnum)
static int Has_hitpoints (int shnum)
static int Check_mask (Game_window *gwin, Game_object *obj, int mask)
void Compare_ranges (int from1, int to1, int from2, int to2, int &cmp, bool &overlap)

Variables

bool combat_trace
const int MAX_QUANTITY = 100


Define Documentation

#define FN_CAST

Definition at line 441 of file objs.cc.

#define FN_CAST   ->as_actor()

Definition at line 441 of file objs.cc.

#define FN_CAST   ->as_egg()

Definition at line 441 of file objs.cc.

#define FN_OBJECT   Game_object

Definition at line 440 of file objs.cc.

#define FN_OBJECT   Actor

Definition at line 440 of file objs.cc.

#define FN_OBJECT   Egg_object

Definition at line 440 of file objs.cc.

#define FN_VECTOR   Game_object_vector

Definition at line 439 of file objs.cc.

#define FN_VECTOR   Actor_vector

Definition at line 439 of file objs.cc.

#define FN_VECTOR   Egg_vector

Definition at line 439 of file objs.cc.


Function Documentation

static int Check_mask ( Game_window gwin,
Game_object obj,
int  mask 
) [static]

Definition at line 369 of file objs.cc.

References Shape_info::barge, Shape_info::hatchable, Obj_flags::in_party, Exult_server::info, Obj_flags::invisible, and Exult_server::obj.

void Compare_ranges ( int  from1,
int  to1,
int  from2,
int  to2,
int &  cmp,
bool &  overlap 
) [inline]

Definition at line 981 of file objs.cc.

Referenced by Game_object::compare().

static int Has_hitpoints ( int  shnum  )  [static]

Definition at line 128 of file objs.cc.

References Shape_info::container, ShapeID::get_info(), Shape_info::has_hp, and Exult_server::info.

Referenced by Game_object::get_obj_hp(), and Game_object::set_obj_hp().

Here is the call graph for this function:

static int Has_quantity ( int  shnum  )  [static]

Definition at line 120 of file objs.cc.

References ShapeID::get_info(), and Exult_server::info.

Referenced by Game_object::drop(), Game_object::get_quantity(), Game_object::get_weight(), and Game_object::modify_quantity().

Here is the call graph for this function:


Variable Documentation

bool combat_trace

Definition at line 116 of file exult.cc.

const int MAX_QUANTITY = 100

Definition at line 137 of file objs.cc.


Generated on Mon Jul 9 14:45:22 2007 for ExultEngine by  doxygen 1.5.1