|
Planeshift
|
Represents an Attack. More...
#include <psattack.h>
Public Member Functions | |
| virtual void | Affect (psCombatAttackGameEvent *event) |
| Once the combat event is called, this meathod runs preattack checks and runs all calculations needed before the combat event is applied. More... | |
| bool | Attack (gemActor *attacker, gemActor *target, INVENTORY_SLOT_NUMBER slot) |
| Schedules an attack. More... | |
| bool | CanAttack (Client *client) |
| This is a check to see if the attack can be used by the character. More... | |
| const csString & | GetDescription () const |
| Gets the attack description. More... | |
| int | GetID () const |
| gets the id More... | |
| const csString & | GetImage () const |
| Gets the attack icon string. More... | |
| const csString & | GetName () const |
| Gets the Name. More... | |
| psAttackType * | GetType () const |
| bool | Load (iResultRow &row) |
| Initialize the attack from the database entry. More... | |
| psAttack () | |
| ~psAttack () | |
Protected Member Functions | |
| void | AffectTarget (gemActor *target, psCombatAttackGameEvent *event, int attack_result) |
| int | CalculateAttack (psCombatAttackGameEvent *event, psItem *subWeapon=NULL) |
Protected Attributes | |
| csString | animation |
| possible attack animation More... | |
| MathExpression * | aoeAngle |
| AOE Angle: (Power, WaySkill, RelatedStat) -> Degrees. More... | |
| MathExpression * | aoeRadius |
| AOE Radius: (Power, WaySkill, RelatedStat) -> Meters. More... | |
| MathExpression * | attackDelay |
| Delay in milliseconds before attack "hits" or has an effect. More... | |
| MathExpression * | attackRange |
| The Max Range of the attack (Meters) More... | |
| MathScript * | damage_script |
| Chance of Success. More... | |
| csString | description |
| the attack description More... | |
| int | id |
| The stored ID of the attack. More... | |
| csString | image |
| the address/id of the icon for the attack More... | |
| csString | name |
| The stored name of the attack. More... | |
| ProgressionScript * | outcome |
| The progression script: (Power, Caster, Target) -> (side effects) More... | |
| csRef< psQuestPrereqOp > | requirements |
| all non weapon based attack requirements. More... | |
| psAttackType * | type |
| the attack type More... | |
| csRef< psQuestPrereqOp > | TypeRequirements |
| all Attack Type based requirements(not handled as a script) More... | |
Represents an Attack.
This is mostly data that is cached from the database to represent what an attack is.
This is going to be very close to how a spell works but more in touch with melee and range style.
Definition at line 82 of file psattack.h.
| psAttack::psAttack | ( | ) |
| psAttack::~psAttack | ( | ) |
|
virtual |
Once the combat event is called, this meathod runs preattack checks and runs all calculations needed before the combat event is applied.
|
protected |
| bool psAttack::Attack | ( | gemActor * | attacker, |
| gemActor * | target, | ||
| INVENTORY_SLOT_NUMBER | slot | ||
| ) |
Schedules an attack.
|
protected |
| bool psAttack::CanAttack | ( | Client * | client | ) |
This is a check to see if the attack can be used by the character.
|
inline |
|
inline |
|
inline |
Gets the attack icon string.
Definition at line 128 of file psattack.h.
|
inline |
|
inline |
Definition at line 141 of file psattack.h.
| bool psAttack::Load | ( | iResultRow & | row | ) |
Initialize the attack from the database entry.
|
protected |
possible attack animation
Definition at line 153 of file psattack.h.
|
protected |
AOE Angle: (Power, WaySkill, RelatedStat) -> Degrees.
Definition at line 166 of file psattack.h.
|
protected |
AOE Radius: (Power, WaySkill, RelatedStat) -> Meters.
Definition at line 164 of file psattack.h.
|
protected |
Delay in milliseconds before attack "hits" or has an effect.
Definition at line 160 of file psattack.h.
|
protected |
The Max Range of the attack (Meters)
Definition at line 162 of file psattack.h.
|
protected |
Chance of Success.
Definition at line 168 of file psattack.h.
|
protected |
the attack description
Definition at line 154 of file psattack.h.
|
protected |
The stored ID of the attack.
Definition at line 150 of file psattack.h.
|
protected |
the address/id of the icon for the attack
Definition at line 152 of file psattack.h.
|
protected |
The stored name of the attack.
Definition at line 151 of file psattack.h.
|
protected |
The progression script: (Power, Caster, Target) -> (side effects)
Definition at line 170 of file psattack.h.
|
protected |
all non weapon based attack requirements.
Definition at line 156 of file psattack.h.
|
protected |
the attack type
Definition at line 155 of file psattack.h.
|
protected |
all Attack Type based requirements(not handled as a script)
Definition at line 157 of file psattack.h.