Planeshift
Public Member Functions | Static Public Member Functions | Public Attributes

CombatManager Class Reference

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>

List of all members.

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)
EntityManagerGetEntityManager ()
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 StanceGetLoweredActorStance (CacheManager *cachemanager, gemActor *attacker)
 Gets increased combat stance of particular attacker.
static const StanceGetRaisedActorStance (CacheManager *cachemanager, gemActor *attacker)
 Gets increased combat stance of particular attacker.
static const StanceGetStance (CacheManager *cachemanager, csString name)
 Gets combat stance by name.

Public Attributes

csArray< INVENTORY_SLOT_NUMBERtargetLocations

Detailed Description

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.


Constructor & Destructor Documentation

CombatManager::CombatManager ( CacheManager cachemanager,
EntityManager entitymanager 
)
virtual CombatManager::~CombatManager ( ) [virtual]

Member Function Documentation

bool CombatManager::AttackSomeone ( gemActor attacker,
gemActor target,
const Stance stance 
)

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

Parameters:
cachemanager,:manager that holds details about stances from database.
attacker,:gemActor that requests to lower his stance
Returns:
Returns combat 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

Parameters:
cachemanager,:manager that holds details about stances from database.
attacker,:gemActor that requests to raise his stance
Returns:
Returns combat 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

Parameters:
cachemanager,:manager that holds details about stances from database.
name,:name of requested stance
Returns:
Returns combat stance.
bool CombatManager::InitializePVP ( )
bool CombatManager::InPVPRegion ( csVector3 &  pos,
iSector *  sector 
)
void CombatManager::NotifyTarget ( gemActor attacker,
gemObject target 
)
void CombatManager::sendAttackList ( MsgEntry me,
Client client 
)
void CombatManager::sendAttackQueue ( psCharacter character)
void CombatManager::sendAttackQueue ( MsgEntry me,
Client client 
)
void CombatManager::SetCombat ( gemActor combatant,
const Stance stance 
)
void CombatManager::StopAttack ( gemActor attacker)

This is how you break an attack sequence off, through death or user command.


Member Data Documentation

Definition at line 105 of file combatmanager.h.


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