Planeshift
Public Member Functions | Public Attributes | Protected Attributes

psCombatAttackGameEvent Class Reference

This event actually triggers an attack. More...

#include <psattack.h>

List of all members.

Public Member Functions

psAttackGetAttack ()
gemActorGetAttacker ()
uint32_t GetAttackerID ()
gemActorGetTarget ()
uint32_t GetTargetID ()
psItemGetWeapon ()
INVENTORY_SLOT_NUMBER GetWeaponSlot ()
 psCombatAttackGameEvent (csTicks delayticks, psAttack *attack, gemActor *attacker, gemActor *target, INVENTORY_SLOT_NUMBER weaponslot, psItem *weapon)
virtual void Trigger ()
 Abstract event processing function.
virtual ~psCombatAttackGameEvent ()

Public Attributes

INVENTORY_SLOT_NUMBER AttackLocation
 Which slot should we check the armor of?
MathEnvironment env
float FinalDamage
 Final damage applied to target.

Protected Attributes

psAttackattack
 The attack.
csWeakRef< gemActorattacker
 Entity who instigated this attack.
uint32_t AttackerCID
 ClientID of attacker.
csWeakRef< gemActortarget
 Entity who is target of this attack.
uint32_t TargetCID
 ClientID of target.
psItemweapon
 the attacking weapon
INVENTORY_SLOT_NUMBER weaponSlot
 Identifier of the slot for which this attack event should process.

Detailed Description

This event actually triggers an attack.

Definition at line 178 of file psattack.h.


Constructor & Destructor Documentation

psCombatAttackGameEvent::psCombatAttackGameEvent ( csTicks  delayticks,
psAttack attack,
gemActor attacker,
gemActor target,
INVENTORY_SLOT_NUMBER  weaponslot,
psItem weapon 
)
virtual psCombatAttackGameEvent::~psCombatAttackGameEvent ( ) [virtual]

Member Function Documentation

psAttack* psCombatAttackGameEvent::GetAttack ( ) [inline]

Definition at line 192 of file psattack.h.

gemActor* psCombatAttackGameEvent::GetAttacker ( ) [inline]

Definition at line 197 of file psattack.h.

uint32_t psCombatAttackGameEvent::GetAttackerID ( ) [inline]

Definition at line 222 of file psattack.h.

gemActor* psCombatAttackGameEvent::GetTarget ( ) [inline]

Definition at line 202 of file psattack.h.

uint32_t psCombatAttackGameEvent::GetTargetID ( ) [inline]

Definition at line 217 of file psattack.h.

psItem* psCombatAttackGameEvent::GetWeapon ( ) [inline]

Definition at line 212 of file psattack.h.

INVENTORY_SLOT_NUMBER psCombatAttackGameEvent::GetWeaponSlot ( ) [inline]

Definition at line 207 of file psattack.h.

virtual void psCombatAttackGameEvent::Trigger ( ) [virtual]

Abstract event processing function.

This functino have to be overridden and will be called if CheckTrigger is ok at the time given in the constructor.

Implements psGameEvent.


Member Data Documentation

The attack.

Definition at line 233 of file psattack.h.

Entity who instigated this attack.

Definition at line 234 of file psattack.h.

ClientID of attacker.

Definition at line 236 of file psattack.h.

Which slot should we check the armor of?

Definition at line 229 of file psattack.h.

Definition at line 228 of file psattack.h.

Final damage applied to target.

Definition at line 230 of file psattack.h.

csWeakRef<gemActor> psCombatAttackGameEvent::target [protected]

Entity who is target of this attack.

Definition at line 235 of file psattack.h.

uint32_t psCombatAttackGameEvent::TargetCID [protected]

ClientID of target.

Definition at line 237 of file psattack.h.

the attacking weapon

Definition at line 242 of file psattack.h.

Identifier of the slot for which this attack event should process.

Definition at line 239 of file psattack.h.


The documentation for this class was generated from the following file: