Pol  Revision:794
pol/los.cpp File Reference
#include "../clib/stl_inc.h"
#include <stdlib.h>
#include "../clib/strutil.h"
#include "item/item.h"
#include "polcfg.h"
#include "uobject.h"
#include "uvars.h"
#include "ustruct.h"
#include "uofile.h"
#include "udatfile.h"
#include "uworld.h"
#include "los.h"
+ Include dependency graph for los.cpp:

Go to the source code of this file.

Namespaces

namespace  Pol
 

$TITLE=Reputation System


namespace  Pol::Core

Defines

#define ABS(a)   (((a)<0) ? -(a) : (a))
#define USE_2D_LOS   0
#define USE_3D_LOS   1
#define ZSGN(a)   (((a)<0) ? -1 : (a)>0 ? 1 : 0)

Functions

bool Pol::Core::dynamic_item_blocks_los (const LosObj &att, const LosObj &target, int x, int y, int z, Realm *realm)
bool Pol::Core::los_blocked (const LosObj &att, const LosObj &target, int x, int y, int z)
bool Pol::Core::static_item_blocks_los (int x, int y, int z)
bool Pol::Core::uo_has_los (const LosObj &att, const LosObj &tgt)

Variables

const int Pol::Core::los_range = 20
const int Pol::Core::z_los_range = 60

Define Documentation

#define ABS (   a)    (((a)<0) ? -(a) : (a))

Definition at line 188 of file los.cpp.

Referenced by Pol::Core::uo_has_los().

#define USE_2D_LOS   0

Definition at line 32 of file los.cpp.

#define USE_3D_LOS   1

Definition at line 33 of file los.cpp.

#define ZSGN (   a)    (((a)<0) ? -1 : (a)>0 ? 1 : 0)

Definition at line 191 of file los.cpp.

Referenced by Pol::Core::uo_has_los().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines