20 #ifndef __COMBATMANAGER_H__    21 #define __COMBATMANAGER_H__    29 #define SECONDS_BEFORE_SPARING_DEFEATED 30    31 class psCombatGameEvent;
   104         return entityManager;
   114     csRandomGen* randomgen;
 
Manages CEL entities on the server. 
 
csWeakRef< Client > loser
 
A MathScript is a mini-program to run. 
 
The structure of 1 queue entry (pointer to a message) 
 
static const Stance & GetLoweredActorStance(CacheManager *cachemanager, gemActor *attacker)
Gets increased combat stance of particular attacker. 
 
EntityManager * GetEntityManager()
 
This stores a vector of positions listing a set of points defining a common type of location...
 
csArray< INVENTORY_SLOT_NUMBER > targetLocations
 
Any semi-autonomous object, either a player or an NPC. 
 
This class handles all calculations around combat, using statistics and information from the pspcchar...
 
bool AttackSomeone(gemActor *attacker, gemActor *target, const Stance &stance)
This is how you start an attack sequence. 
 
void sendAttackList(MsgEntry *me, Client *client)
 
This class collects data of a netclient. 
 
static const Stance & GetStance(CacheManager *cachemanager, csString name)
Gets combat stance by name. 
 
void NotifyTarget(gemActor *attacker, gemObject *target)
 
static const Stance & GetRaisedActorStance(CacheManager *cachemanager, gemActor *attacker)
Gets increased combat stance of particular attacker. 
 
This class manages the caching of data that is unchanging during server operation. 
 
void StopAttack(gemActor *attacker)
This is how you break an attack sequence off, through death or user command. 
 
A gemObject is any solid, graphical object visible in PS with normal physics and normal collision det...
 
void sendAttackQueue(MsgEntry *me, Client *client)
 
This holds all the formulas loaded from the MathScript table and provides a container for them...
 
All scheduled events must inherit from this class. 
 
bool InPVPRegion(csVector3 &pos, iSector *sector)
 
void SetCombat(gemActor *combatant, const Stance &stance)
 
Provides a manager to facilitate subscriptions. 
 
CombatManager(CacheManager *cachemanager, EntityManager *entitymanager)