Planeshift
|
This event actually triggers an attack. More...
#include <psattack.h>
Public Member Functions | |
psAttack * | GetAttack () |
gemActor * | GetAttacker () |
uint32_t | GetAttackerID () |
gemActor * | GetTarget () |
uint32_t | GetTargetID () |
psItem * | GetWeapon () |
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 | |
psAttack * | attack |
The attack. | |
csWeakRef< gemActor > | attacker |
Entity who instigated this attack. | |
uint32_t | AttackerCID |
ClientID of attacker. | |
csWeakRef< gemActor > | target |
Entity who is target of this attack. | |
uint32_t | TargetCID |
ClientID of target. | |
psItem * | weapon |
the attacking weapon | |
INVENTORY_SLOT_NUMBER | weaponSlot |
Identifier of the slot for which this attack event should process. |
This event actually triggers an attack.
Definition at line 178 of file psattack.h.
psCombatAttackGameEvent::psCombatAttackGameEvent | ( | csTicks | delayticks, |
psAttack * | attack, | ||
gemActor * | attacker, | ||
gemActor * | target, | ||
INVENTORY_SLOT_NUMBER | weaponslot, | ||
psItem * | weapon | ||
) |
virtual psCombatAttackGameEvent::~psCombatAttackGameEvent | ( | ) | [virtual] |
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.
psAttack* psCombatAttackGameEvent::attack [protected] |
The attack.
Definition at line 233 of file psattack.h.
csWeakRef<gemActor> psCombatAttackGameEvent::attacker [protected] |
Entity who instigated this attack.
Definition at line 234 of file psattack.h.
uint32_t psCombatAttackGameEvent::AttackerCID [protected] |
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.
psItem* psCombatAttackGameEvent::weapon [protected] |
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.