Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

combat.cpp File Reference

#include "uox3.h"
#include "debug.h"

Defines

#define DBGFILE   "combat.cpp"
#define SWINGAT   (UI32)1.75 * CLOCKS_PER_SEC

Functions

void InvalidateAttacker (CChar *attack)
void AdjustRaceDamage (CChar *defend, CItem *weapon, SI16 &bDamage)
SI08 DoHitMessage (CChar *defend, CChar *attack, cSocket *mSock, SI16 damage)
void QuickSwitch (CChar *attack, CChar *defend, short spellNum)
void PlayerAttack (cSocket *s)
void npcAttackTarget (CChar *target, CChar *source)
void npcSimpleAttackTarget (CChar *defender, CChar *attacker)
void petGuardAttack (CChar *mChar, CChar *owner, SERIAL guarded)

Variables

const UI08 BODYPERCENT = 0
const UI08 ARMSPERCENT = 1
const UI08 HEADPERCENT = 2
const UI08 LEGSPERCENT = 3
const UI08 NECKPERCENT = 4
const UI08 OTHERPERCENT = 5
const UI08 TOTALTARGETSPOTS = 6
const UI08 LOCPERCENTAGES [TOTALTARGETSPOTS] = { 44, 14, 14, 14, 7, 7 }

Define Documentation

#define DBGFILE   "combat.cpp"
 

#define SWINGAT   (UI32)1.75 * CLOCKS_PER_SEC
 


Function Documentation

void AdjustRaceDamage CChar *   defend,
CItem *   weapon,
SI16 &   bDamage
 

SI08 DoHitMessage CChar *   defend,
CChar *   attack,
cSocket *   mSock,
SI16   damage
 

void InvalidateAttacker CChar *   attack
 

void PlayerAttack cSocket *   s
 

void QuickSwitch CChar *   attack,
CChar *   defend,
short   spellNum
[inline]
 

void npcAttackTarget CChar *   target2,
CChar *   target
 

void npcSimpleAttackTarget CChar *   target2,
CChar *   target
 

void petGuardAttack CChar *   mChar,
CChar *   owner,
SERIAL   guarded
 


Variable Documentation

const UI08 ARMSPERCENT = 1
 

const UI08 BODYPERCENT = 0
 

const UI08 HEADPERCENT = 2
 

const UI08 LEGSPERCENT = 3
 

const UI08 LOCPERCENTAGES[TOTALTARGETSPOTS] = { 44, 14, 14, 14, 7, 7 }
 

const UI08 NECKPERCENT = 4
 

const UI08 OTHERPERCENT = 5
 

const UI08 TOTALTARGETSPOTS = 6
 


Generated at Sun Sep 16 22:45:32 2001 for UOX3 by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001