Pol  Revision:f37d500
npc.cpp File Reference
#include "npc.h"
#include <stdlib.h>
#include "../../bscript/berror.h"
#include "../../clib/cfgelem.h"
#include "../../clib/fileutil.h"
#include "../../clib/logfacility.h"
#include "../../clib/passert.h"
#include "../../clib/random.h"
#include "../../clib/refptr.h"
#include "../../clib/streamsaver.h"
#include "../baseobject.h"
#include "../dice.h"
#include "../fnsearch.h"
#include "../globals/state.h"
#include "../globals/uvars.h"
#include "../item/armor.h"
#include "../item/weapon.h"
#include "../listenpt.h"
#include "../mdelta.h"
#include "../module/npcmod.h"
#include "../module/osmod.h"
#include "../module/uomod.h"
#include "../multi/multi.h"
#include "../npctmpl.h"
#include "../scrdef.h"
#include "../scrsched.h"
#include "../scrstore.h"
#include "../ufunc.h"
#include "../uobjcnt.h"
#include "../uobject.h"
#include "../uoexec.h"
#include "../uoscrobj.h"
#include "../uworld.h"
#include "attribute.h"
#include "charactr.h"
#include "wornitems.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Mobile
 

Functions

unsigned short Pol::Mobile::calc_thru_damage (double damage, unsigned short ar)
 

Detailed Description

History
  • 2005/06/15 Shinigami: added CanMove - checks if an NPC can move in given direction (IsLegalMove works in a different way and is used for bounding boxes only)
  • 2006/01/18 Shinigami: set Master first and then start Script in NPC::readNpcProperties
  • 2006/01/18 Shinigami: added attached_npc_ - to get attached NPC from AI-Script-Process Obj
  • 2006/09/17 Shinigami: send_event() will return error "Event queue is full, discarding event"
  • 2009/03/27 MuadDib: NPC::inform_moved() && NPC::inform_imoved() split the left/entered area to fix bug where one would trigger when not enabled.
  • 2009/07/23 MuadDib: updates for new Enum::Packet Out ID
  • 2009/08/25 Shinigami: STLport-5.2.1 fix: params not used STLport-5.2.1 fix: init order changed of damaged_sound
  • 2009/09/15 MuadDib: Cleanup from registered houses on destroy
  • 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/10/14 Turley: Added char.deaf() methods & char.deafened member
  • 2009/10/23 Turley: fixed OPPONENT_MOVED,LEFTAREA,ENTEREDAREA
  • 2009/11/16 Turley: added NpcPropagateEnteredArea()/inform_enteredarea() for event on resurrection
  • 2010/01/15 Turley: (Tomi) SaveOnExit as npcdesc entry

Definition in file npc.cpp.