|
Planeshift
|
This class handles all calculations around combat, using statistics and information from the pspccharacterinfo Prop Classes for both the attacker and the target. More...
#include <combatmanager.h>
Public Member Functions | |
| bool | AttackSomeone (gemActor *attacker, gemActor *target, const Stance &stance) |
| This is how you start an attack sequence. | |
| CombatManager (CacheManager *cachemanager, EntityManager *entitymanager) | |
| EntityManager * | GetEntityManager () |
| bool | InitializePVP () |
| bool | InPVPRegion (csVector3 &pos, iSector *sector) |
| void | NotifyTarget (gemActor *attacker, gemObject *target) |
| void | sendAttackList (MsgEntry *me, Client *client) |
| void | sendAttackQueue (MsgEntry *me, Client *client) |
| void | sendAttackQueue (psCharacter *character) |
| void | SetCombat (gemActor *combatant, const Stance &stance) |
| void | StopAttack (gemActor *attacker) |
| This is how you break an attack sequence off, through death or user command. | |
| virtual | ~CombatManager () |
Static Public Member Functions | |
| static const Stance & | GetLoweredActorStance (CacheManager *cachemanager, gemActor *attacker) |
| Gets increased combat stance of particular attacker. | |
| static const Stance & | GetRaisedActorStance (CacheManager *cachemanager, gemActor *attacker) |
| Gets increased combat stance of particular attacker. | |
| static const Stance & | GetStance (CacheManager *cachemanager, csString name) |
| Gets combat stance by name. | |
Public Attributes | |
| csArray< INVENTORY_SLOT_NUMBER > | targetLocations |
This class handles all calculations around combat, using statistics and information from the pspccharacterinfo Prop Classes for both the attacker and the target.
Definition at line 55 of file combatmanager.h.
| CombatManager::CombatManager | ( | CacheManager * | cachemanager, |
| EntityManager * | entitymanager | ||
| ) |
| virtual CombatManager::~CombatManager | ( | ) | [virtual] |
This is how you start an attack sequence.
| EntityManager* CombatManager::GetEntityManager | ( | ) | [inline] |
Definition at line 102 of file combatmanager.h.
| static const Stance& CombatManager::GetLoweredActorStance | ( | CacheManager * | cachemanager, |
| gemActor * | attacker | ||
| ) | [static] |
Gets increased combat stance of particular attacker.
If current combat stance is the lowest returns current combat stance
| cachemanager,: | manager that holds details about stances from database. |
| attacker,: | gemActor that requests to lower his stance |
| static const Stance& CombatManager::GetRaisedActorStance | ( | CacheManager * | cachemanager, |
| gemActor * | attacker | ||
| ) | [static] |
Gets increased combat stance of particular attacker.
If current combat stance is the highest returns current combat stance
| cachemanager,: | manager that holds details about stances from database. |
| attacker,: | gemActor that requests to raise his stance |
| static const Stance& CombatManager::GetStance | ( | CacheManager * | cachemanager, |
| csString | name | ||
| ) | [static] |
Gets combat stance by name.
If combat stance name is invalid returns default global stance
| cachemanager,: | manager that holds details about stances from database. |
| name,: | name of requested stance |
| bool CombatManager::InitializePVP | ( | ) |
| bool CombatManager::InPVPRegion | ( | csVector3 & | pos, |
| iSector * | sector | ||
| ) |
| void CombatManager::sendAttackQueue | ( | psCharacter * | character | ) |
| void CombatManager::StopAttack | ( | gemActor * | attacker | ) |
This is how you break an attack sequence off, through death or user command.
Definition at line 105 of file combatmanager.h.
1.7.3