Pol  Revision:7b0b906
Pol::Mobile Namespace Reference

Classes

struct  Anchor
 
struct  Area
 
class  ARUpdater
 
class  Attribute
 
class  AttributeValue
 
class  BoundingBox
 
struct  Buff
 
class  Character
 
class  NPC
 
struct  Point
 
class  PrivUpdater
 
struct  reportable_t
 
class  VitalValue
 

Enumerations

enum  MOB_FLAGS : u16 {
  MOB_FLAGS::READY_TO_SWING = 1 << 0, MOB_FLAGS::MURDERER = 1 << 1, MOB_FLAGS::PARTY_CAN_LOOT = 1 << 2, MOB_FLAGS::TRADE_ACCEPTED = 1 << 3,
  MOB_FLAGS::DEAD = 1 << 4, MOB_FLAGS::HIDDEN = 1 << 5, MOB_FLAGS::FROZEN = 1 << 6, MOB_FLAGS::PARALYZED = 1 << 7,
  MOB_FLAGS::WARMODE = 1 << 8, MOB_FLAGS::POISONED = 1 << 9, MOB_FLAGS::LOGGED_IN = 1 << 10, MOB_FLAGS::CONNECTED = 1 << 11,
  MOB_FLAGS::USE_ADJUSTMENTS = 1 << 12
}
 
enum  PRIV_FLAGS : u32 {
  PRIV_FLAGS::MOVE_ANY = 1 << 0, PRIV_FLAGS::MOVE_ANY_DIST = 1 << 1, PRIV_FLAGS::RENAME_ANY = 1 << 2, PRIV_FLAGS::CLOTHE_ANY = 1 << 3,
  PRIV_FLAGS::INVUL = 1 << 4, PRIV_FLAGS::SEE_HIDDEN = 1 << 5, PRIV_FLAGS::SEE_GHOSTS = 1 << 6, PRIV_FLAGS::HEAR_GHOSTS = 1 << 7,
  PRIV_FLAGS::SEE_INVIS_ITEMS = 1 << 8, PRIV_FLAGS::DBLCLICK_ANY = 1 << 9, PRIV_FLAGS::LOS_ANY = 1 << 19, PRIV_FLAGS::IGNORE_DOORS = 1 << 11,
  PRIV_FLAGS::FREEMOVE = 1 << 12, PRIV_FLAGS::FIRE_WHILE_MOVING = 1 << 13, PRIV_FLAGS::ATTACK_HIDDEN = 1 << 14, PRIV_FLAGS::HIDDEN_ATTACK = 1 << 15,
  PRIV_FLAGS::PLOG_ANY = 1 << 16, PRIV_FLAGS::CAN_BE_HEARD_AS_GHOST = 1 << 17, PRIV_FLAGS::RUN_WHILE_STEALTH = 1 << 18, PRIV_FLAGS::SPEEDHACK = 1 << 19,
  PRIV_FLAGS::ALL = ~0u
}
 

Functions

unsigned short calc_thru_damage (double damage, unsigned short ar)
 
void clean_attributes ()
 
Items::Itemcreate_backpack ()
 
Items::Itemcreate_death_robe ()
 
Items::Itemcreate_death_shroud ()
 
bool DecodeFacing (const char *dir, Core::UFACING &facing)
 
Core::UFACING direction_away (const Character *src, const Core::UObject *idst)
 
Core::UFACING direction_away (const Character *src, Core::xcoord from_x, Core::ycoord from_y)
 
Core::UFACING direction_toward (const Character *src, const Core::UObject *idst)
 
Core::UFACING direction_toward (const Character *src, Core::xcoord to_x, Core::ycoord to_y)
 
Core::UFACING direction_toward (Core::xcoord from_x, Core::ycoord from_y, Core::xcoord to_x, Core::ycoord to_y)
 
const char * FacingStr (Core::UFACING facing)
 
Core::UFACING GetRandomFacing ()
 
void handle_attack (Network::Client *client, Core::PKTIN_05 *msg)
 
unsigned short layer_to_zone (unsigned short layer)
 
void load_armor_zones ()
 
void load_attribute_entry (const Plib::Package *pkg, Clib::ConfigElem &elem)
 
void load_attributes_cfg ()
 
void NpcPropagateCriminal (Character *chr, Character *thecriminal)
 
void NpcPropagateEnteredArea (Character *chr, Character *whoentered)
 
void NpcPropagateLeftArea (Character *chr, Character *wholeft)
 
void NpcPropagateMove (Character *chr, Character *moved)
 
bool operator< (const reportable_t &lhs, const reportable_t &rhs)
 
void PropagateMove (Character *chr)
 
void send_create_ghost (Character *chr, Network::Client *client)
 
void send_remove_if_hidden_ghost (Character *chr, Network::Client *client)
 
void unload_armor_zones ()
 
unsigned short zone_name_to_zone (const char *zname)
 
const char * zone_to_zone_name (unsigned short zone)
 

Variables

const unsigned ATTRIBUTE_MAX_BASE = 60000
 
const unsigned ATTRIBUTE_MAX_EFFECTIVE = 6000
 
const short ATTRIBUTE_MAX_INTRINSIC_MOD = +30000
 
const short ATTRIBUTE_MAX_TEMP_MOD = +30000
 
const unsigned ATTRIBUTE_MIN_BASE = 0
 
const unsigned ATTRIBUTE_MIN_EFFECTIVE = 0
 
const short ATTRIBUTE_MIN_INTRINSIC_MOD = -30000
 
const short ATTRIBUTE_MIN_TEMP_MOD = -30000
 

Enumeration Type Documentation

enum Pol::Mobile::MOB_FLAGS : u16
strong
Enumerator
READY_TO_SWING 
MURDERER 
PARTY_CAN_LOOT 
TRADE_ACCEPTED 
DEAD 
HIDDEN 
FROZEN 
PARALYZED 
WARMODE 
POISONED 
LOGGED_IN 
CONNECTED 
USE_ADJUSTMENTS 

Definition at line 310 of file charactr.h.

Enumerator
MOVE_ANY 
MOVE_ANY_DIST 
RENAME_ANY 
CLOTHE_ANY 
INVUL 
SEE_HIDDEN 
SEE_GHOSTS 
HEAR_GHOSTS 
SEE_INVIS_ITEMS 
DBLCLICK_ANY 
LOS_ANY 
IGNORE_DOORS 
FREEMOVE 
FIRE_WHILE_MOVING 
ATTACK_HIDDEN 
HIDDEN_ATTACK 
PLOG_ANY 
CAN_BE_HEARD_AS_GHOST 
RUN_WHILE_STEALTH 
SPEEDHACK 
ALL 

Definition at line 283 of file charactr.h.

Function Documentation

unsigned short Pol::Mobile::calc_thru_damage ( double  damage,
unsigned short  ar 
)
void Pol::Mobile::clean_attributes ( )
Items::Item* Pol::Mobile::create_backpack ( )
Items::Item* Pol::Mobile::create_death_robe ( )
Items::Item* Pol::Mobile::create_death_shroud ( )
Core::UFACING Pol::Mobile::direction_away ( const Character src,
Core::xcoord  from_x,
Core::ycoord  from_y 
)

Definition at line 160 of file ufacing.cpp.

References Pol::Core::away_cvt, and direction_toward().

Core::UFACING Pol::Mobile::GetRandomFacing ( )

Definition at line 28 of file ufacing.cpp.

References Pol::Clib::random_int().

Referenced by Pol::Module::NPCExecutorModule::move().

unsigned short Pol::Mobile::layer_to_zone ( unsigned short  layer)
void Pol::Mobile::NpcPropagateCriminal ( Character chr,
Character thecriminal 
)
inline
void Pol::Mobile::NpcPropagateEnteredArea ( Character chr,
Character whoentered 
)
inline

Definition at line 1096 of file charactr.h.

References Pol::Mobile::Character::inform_enteredarea().

void Pol::Mobile::NpcPropagateLeftArea ( Character chr,
Character wholeft 
)
inline

Definition at line 1088 of file charactr.h.

References Pol::Mobile::Character::inform_leftarea().

void Pol::Mobile::NpcPropagateMove ( Character chr,
Character moved 
)
inline
bool Pol::Mobile::operator< ( const reportable_t lhs,
const reportable_t rhs 
)
inline
void Pol::Mobile::send_remove_if_hidden_ghost ( Character chr,
Network::Client client 
)
void Pol::Mobile::unload_armor_zones ( )
unsigned short Pol::Mobile::zone_name_to_zone ( const char *  zname)
const char * Pol::Mobile::zone_to_zone_name ( unsigned short  zone)

Variable Documentation

const unsigned Pol::Mobile::ATTRIBUTE_MAX_EFFECTIVE = 6000

Definition at line 67 of file attribute.h.

const short Pol::Mobile::ATTRIBUTE_MAX_INTRINSIC_MOD = +30000

Definition at line 76 of file attribute.h.

Referenced by Pol::Mobile::Character::calc_single_attribute().

const short Pol::Mobile::ATTRIBUTE_MAX_TEMP_MOD = +30000
const unsigned Pol::Mobile::ATTRIBUTE_MIN_BASE = 0
const unsigned Pol::Mobile::ATTRIBUTE_MIN_EFFECTIVE = 0

Definition at line 66 of file attribute.h.

const short Pol::Mobile::ATTRIBUTE_MIN_INTRINSIC_MOD = -30000

Definition at line 75 of file attribute.h.

Referenced by Pol::Mobile::Character::calc_single_attribute().

const short Pol::Mobile::ATTRIBUTE_MIN_TEMP_MOD = -30000