Pol  Revision:cb584c9
charactr.cpp File Reference
#include "pol_global_config.h"
#include "charactr.h"
#include <stdlib.h>
#include <string>
#include "../../clib/cfgelem.h"
#include "../../clib/cfgfile.h"
#include "../../clib/clib.h"
#include "../../clib/clib_endian.h"
#include "../../clib/esignal.h"
#include "../../clib/fileutil.h"
#include "../../clib/logfacility.h"
#include "../../clib/passert.h"
#include "../../clib/random.h"
#include "../../clib/stlutil.h"
#include "../../clib/streamsaver.h"
#include "../../plib/mapcell.h"
#include "../../plib/systemstate.h"
#include "../accounts/account.h"
#include "../accounts/accounts.h"
#include "../checkpnt.h"
#include "../clidata.h"
#include "../cmbtcfg.h"
#include "../cmdlevel.h"
#include "../containr.h"
#include "../dice.h"
#include "../extobj.h"
#include "../fnsearch.h"
#include "../globals/settings.h"
#include "../globals/state.h"
#include "../globals/uvars.h"
#include "../guardrgn.h"
#include "../guilds.h"
#include "../item/armor.h"
#include "../item/item.h"
#include "../item/itemdesc.h"
#include "../item/weapon.h"
#include "../item/wepntmpl.h"
#include "../layers.h"
#include "../mdelta.h"
#include "../miscrgn.h"
#include "../mkscrobj.h"
#include "../module/osmod.h"
#include "../module/uomod.h"
#include "../movecost.h"
#include "../multi/customhouses.h"
#include "../multi/house.h"
#include "../multi/multi.h"
#include "../multi/multidef.h"
#include "../musicrgn.h"
#include "../network/cgdata.h"
#include "../network/client.h"
#include "../network/cliface.h"
#include "../network/packetdefs.h"
#include "../network/packethelper.h"
#include "../network/packets.h"
#include "../objtype.h"
#include "../party.h"
#include "../pktdef.h"
#include "../polclass.h"
#include "../polsig.h"
#include "../polvar.h"
#include "../profile.h"
#include "../realms/WorldChangeReasons.h"
#include "../realms/realm.h"
#include "../schedule.h"
#include "../scrdef.h"
#include "../scrsched.h"
#include "../scrstore.h"
#include "../sfx.h"
#include "../skilladv.h"
#include "../spelbook.h"
#include "../statmsg.h"
#include "../syshook.h"
#include "../ufunc.h"
#include "../ufuncstd.h"
#include "../uobjcnt.h"
#include "../uoexec.h"
#include "../uoscrobj.h"
#include "../uworld.h"
#include "../vital.h"
#include "attribute.h"
#include "corpse.h"
#include "privupdater.h"
#include "wornitems.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Core
 
 Pol::Mobile
 

Functions

unsigned short Pol::Mobile::calc_thru_damage (double damage, unsigned short ar)
 
void Pol::Core::cancel_trade (Mobile::Character *chr1)
 
Items::Item * Pol::Mobile::create_backpack ()
 
Items::Item * Pol::Mobile::create_death_robe ()
 
Items::Item * Pol::Mobile::create_death_shroud ()
 
unsigned short Pol::Mobile::layer_to_zone (unsigned short layer)
 
void Pol::Mobile::load_armor_zones ()
 
void Pol::Mobile::PropagateMove (Character *chr)
 
void Pol::Mobile::send_create_ghost (Character *chr, Network::Client *client)
 
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)
 

Detailed Description

History
  • 2003/12/24 Dave: on_poison_changed() changed to keep life bars from disappearing when you poison someone.
  • 2005/03/09 Shinigami: Added Prop Delay_Mod [ms] for WeaponDelay (see schedule_attack too)
  • 2005/06/01 Shinigami: Added Walking_Mounted and Running_Mounted movecosts
  • 2005/09/14 Shinigami: Character::resurrect() - Vital.regen_while_dead implemented
  • 2005/10/14 Shinigami: fixed missing init of Character::dblclick_wait
  • 2005/11/23 MuadDib: Added warmode_wait object for characters.
  • 2005/11/25 MuadDib: Added realm check to is_visible_to_me.
  • 2005/12/06 MuadDib: Added uclang member for storing UC language from client.
  • 2006/03/10 MuadDib: Added NoCombat support to checking of justice region.
  • 2006/05/04 MuadDib: Removed get_legal_item for no use.
  • 2006/05/04 MuadDib: SkillValue() removed for no use.
  • 2006/05/16 Shinigami: UOBJ_*MALE_GHOST renamed to UOBJ_HUMAN_*MALE_GHOST added Prop Race (RACE_* Constants) to support Elfs Character::die(), Character::doors_block() and Character::resurrect() updated
  • 2008/07/08 Turley: get_flag1() changed to show WarMode of other player again get_flag1_aos() removed
  • 2009/01/14 Nando: setgraphic() changed to allow graphics up to 2048 (0x800).
  • 2009/02/01 MuadDib: Resistance storage added.
  • 2009/02/25 MuadDib: on_poison_changed() added UOKR Status bar update for poisoned. Booyah!
  • 2009/07/20 MuadDib: Slot checks added to Character::Die()
  • 2009/07/25 MuadDib: equippable() now checks if a twohanded is intrinsic or not also. Intrinsic gets ignored
  • 2009/07/31 Turley: added check for cmbtcfg::send_swing_packet & reset_swing_onturn
  • 2009/08/04 MuadDib: calc_vital_stuff() now checks to see if a vital changed, before using tell_vital_changed()
  • 2009/08/06 MuadDib: Addeed gotten_by code for items.
  • 2009/08/07 MuadDib: Added new Corpse Layer code to character Die() to put equipped items on correct layer with corpse. Ignores items from pack, because in death we only want the items it had equipped in life, showing up on the corpse when dead.
  • 2009/08/09 MuadDib: on_poison_changed() rewritten for better KR poison support.
  • 2009/08/16 MuadDib: fix for die() where checking corpse and not item for slot_index().
  • 2009/08/25 Shinigami: STLport-5.2.1 fix: corpseSlot not used STLport-5.2.1 fix: init order changed of party_can_loot_, party_decline_timeout_ and skillcap_
  • 2009/08/28 Turley: Crashfix for Character::on_poison_changed()
  • 2009/09/03 MuadDib: Changed combat related ssopt stuff to combat_config. Changes for account related source file relocation Changes for multi related source file relocation
  • 2009/09/09 Turley: ServSpecOpt CarryingCapacityMod as * modifier for Character::carrying_capacity()
  • 2009/09/15 MuadDib: Cleanup from registered houses on destroy u32 registered_house added to store serial of registered multi. Multi registration/unregistration support added.
  • 2009/09/06 Turley: Changed Version checks to bitfield client->ClientType
  • 2009/09/18 MuadDib: Adding save/load of registered house serial
  • 2009/09/22 MuadDib: Rewrite for Character/NPC to use ar(), ar_mod(), ar_mod(newvalue) virtuals.
  • 2009/09/22 Turley: Added DamagePacket support & repsys param to applydamage
  • 2009/10/14 Turley: new priv canbeheardasghost
  • 2009/10/14 Turley: Added char.deaf() methods & char.deafened member
  • 2009/10/17 Turley: PrivUpdater for "seehidden", "seeghosts", "seeinvisitems" and "invul" - Tomi fixed "all" priv PrivUpdater class cleanup, removed duplicate stuff
  • 2009/10/22 Turley: added OuchHook call if lastz-z>21 (clientside value)
  • 2009/11/16 Turley: added NpcPropagateEnteredArea()/inform_enteredarea() for event on resurrection
  • 2009/11/19 Turley: lightlevel now supports endless duration - Tomi
  • 2009/11/20 Turley: RecalcVitals can update single Attributes/Vitals - based on Tomi
  • 2009/11/26 Turley: Syshook CanDie(mobile)
  • 2009/11/30 Turley: fixed calc_single_vital doesnt check changed maximum value
  • 2009/12/02 Turley: added gargoyle & face support
  • 2009/12/03 Turley: fixed client>=7 poison/flying flag, basic flying support
  • 2010/01/14 Turley: AttackWhileFrozen check
  • 2010/01/15 Turley: (Tomi) priv runwhilestealth
  • 2010/01/22 Turley: Speedhack Prevention System
  • 2011/11/12 Tomi: added extobj.mount and extobj.secure_trade_container
  • 2012/02/06 MuadDib: Added serial check at root of Character::get_from_ground to make sure not trying to move orphaned items. In loop, if an found is an orphan it logs it and skips rest of individual itr to ensure movement not attempted.

Definition in file charactr.cpp.