Public Member Functions | Public Attributes

cell.Actor.Actor Class Reference

List of all members.

Public Member Functions

def __init__
def aggroOn
def deAggroOn
 deAggroOn removes the given entityId to the aggroOn list, means that dont hold aggro on them anymore
def haveAggroOn
 test whether we have any aggro from anyone
def aggroFromEntity
 aggroFromEntity adds the given entityId to the aggro list.
def deAggroFrom
 deAggroFrom removes the given entityId from the aggroFrom list, means that entity does not hold aggro on us anymore
def haveAggroFrom
 test whether we have aggro on a given entity
def haveAggro
 test whether we have any aggro from anyone
def eventAggroDropped
def applyEffect
 the sole function of this one is to remove the sourceId from the rpcEvent call
def addEventProc
def getTargetEntity
def onTimer
def onWeaponAttackPerformed
 callback for the combat resolver called whenever one of the equipped weapons has performed a single attack
def onDestroy
def facePosition
def doDamage
def doHealthRegen
def updateHealthPercent
 update our public healthPercent property: this will trigger an update to all clients and cells holding a ghost of us since healthPercent is flagged ALL_CLIENTS and thus available to everyone as opposed to the character stats themselves
def enterCombat
 enterCombat is called when an Actor enters into combat mode
def exitCombat
 exit combat will restate an Actor's combat state to off, remove a current target from the aggroOn list, relay a AGGRO_DROPPED event to the target, cancel the target and finally stop autoattack mode
def stopAutoattack
def pauseAutoattack
 pauseAutoattack does not turn the auto attack state off but it stops the combat resolver from processing weapon swings.
def setTarget
 aquire the entity identified by entityId as new target.
def targetLost
 a targetLost condition this will usually occur if our target leaves the world (dies or logs off) we do automaticall deAggroOn the former target (remove it from the aggroOn list) and stop auto attacking
def die
 the purpose of this function should be kind of obvious :)
def rpcReceiveDamage
def rpcProcessEvent
def rpcProcessStringEvent

Public Attributes

 aggroFromList
 aggroOnList
 combatResolver
 states
 isPlayer
 targetId
 eventProc
 timeLastHitReceived
 direction
 healthPercent
 combatStartTick

Detailed Description

Definition at line 22 of file Actor.py.


Member Function Documentation

def cell.Actor.Actor.__init__ (   self  ) 

Definition at line 24 of file Actor.py.

def cell.Actor.Actor.addEventProc (   self,
  eventId,
  proc 
)

Definition at line 128 of file Actor.py.

def cell.Actor.Actor.aggroFromEntity (   self,
  entityId 
)

aggroFromEntity adds the given entityId to the aggro list.

This signifies that this entity has aggroed us, we cannot leave combat mode as long as we have any aggro.

Parameters:
 entityId the id of the entity to add to the aggro list

Definition at line 83 of file Actor.py.

def cell.Actor.Actor.aggroOn (   self,
  entityId 
)

Definition at line 54 of file Actor.py.

def cell.Actor.Actor.applyEffect (   self,
  sourceId,
  effectId 
)

the sole function of this one is to remove the sourceId from the rpcEvent call

Definition at line 125 of file Actor.py.

def cell.Actor.Actor.deAggroFrom (   self,
  entityId 
)

deAggroFrom removes the given entityId from the aggroFrom list, means that entity does not hold aggro on us anymore

Parameters:
 entityId the id of the entity to remove from the aggro list

Definition at line 92 of file Actor.py.

def cell.Actor.Actor.deAggroOn (   self,
  entityId 
)

deAggroOn removes the given entityId to the aggroOn list, means that dont hold aggro on them anymore

Parameters:
 entityId the id of the entity to remove from the aggroOn list

Definition at line 63 of file Actor.py.

def cell.Actor.Actor.die (   self,
  sourceId 
)

the purpose of this function should be kind of obvious :)

Definition at line 296 of file Actor.py.

def cell.Actor.Actor.doDamage (   self,
  hitType,
  damage 
)

Definition at line 190 of file Actor.py.

def cell.Actor.Actor.doHealthRegen (   self  ) 

Definition at line 195 of file Actor.py.

def cell.Actor.Actor.enterCombat (   self,
  attackerId = None 
)

enterCombat is called when an Actor enters into combat mode

Parameters:
 attackerId is an optional parameter, if not None it indicates that we are entering into combat mode because someone else (identified by attackerId) attacked us. In this case we'll automatically target the attacker

Definition at line 216 of file Actor.py.

def cell.Actor.Actor.eventAggroDropped (   self,
  sourceId,
  eventValue 
)

Definition at line 120 of file Actor.py.

def cell.Actor.Actor.exitCombat (   self  ) 

exit combat will restate an Actor's combat state to off, remove a current target from the aggroOn list, relay a AGGRO_DROPPED event to the target, cancel the target and finally stop autoattack mode

Definition at line 246 of file Actor.py.

def cell.Actor.Actor.facePosition (   self,
  pos 
)

Definition at line 179 of file Actor.py.

def cell.Actor.Actor.getTargetEntity (   self  ) 

Definition at line 136 of file Actor.py.

def cell.Actor.Actor.haveAggro (   self  ) 

test whether we have any aggro from anyone

Returns:
: True of False test result

Definition at line 110 of file Actor.py.

def cell.Actor.Actor.haveAggroFrom (   self,
  entityId 
)

test whether we have aggro on a given entity

Parameters:
 entityId the id of the entity to test against the list
Returns:
: True of False test result

Definition at line 103 of file Actor.py.

def cell.Actor.Actor.haveAggroOn (   self  ) 

test whether we have any aggro from anyone

Returns:
: True of False test result

Definition at line 73 of file Actor.py.

def cell.Actor.Actor.onDestroy (   self  ) 

Definition at line 170 of file Actor.py.

def cell.Actor.Actor.onTimer (   self,
  timerId,
  userData 
)

Definition at line 152 of file Actor.py.

def cell.Actor.Actor.onWeaponAttackPerformed (   self,
  hitType,
  dmg 
)

callback for the combat resolver called whenever one of the equipped weapons has performed a single attack

Definition at line 163 of file Actor.py.

def cell.Actor.Actor.pauseAutoattack (   self,
  restart = False 
)

pauseAutoattack does not turn the auto attack state off but it stops the combat resolver from processing weapon swings.

This is used when our target is temporarily out off range

Definition at line 269 of file Actor.py.

def cell.Actor.Actor.rpcProcessEvent (   self,
  sourceId,
  eventType,
  eventValue 
)

Definition at line 344 of file Actor.py.

def cell.Actor.Actor.rpcProcessStringEvent (   self,
  sourceId,
  eventType,
  eventString 
)

Definition at line 354 of file Actor.py.

def cell.Actor.Actor.rpcReceiveDamage (   self,
  damage,
  sourceId 
)

Definition at line 322 of file Actor.py.

def cell.Actor.Actor.setTarget (   self,
  entityId 
)

aquire the entity identified by entityId as new target.

This also triggers a combatResolver attacktable rebuild

Definition at line 280 of file Actor.py.

def cell.Actor.Actor.stopAutoattack (   self  ) 

Definition at line 260 of file Actor.py.

def cell.Actor.Actor.targetLost (   self  ) 

a targetLost condition this will usually occur if our target leaves the world (dies or logs off) we do automaticall deAggroOn the former target (remove it from the aggroOn list) and stop auto attacking

Definition at line 287 of file Actor.py.

def cell.Actor.Actor.updateHealthPercent (   self  ) 

update our public healthPercent property: this will trigger an update to all clients and cells holding a ghost of us since healthPercent is flagged ALL_CLIENTS and thus available to everyone as opposed to the character stats themselves

Definition at line 207 of file Actor.py.


Member Data Documentation

Definition at line 31 of file Actor.py.

Definition at line 32 of file Actor.py.

Definition at line 34 of file Actor.py.

Definition at line 222 of file Actor.py.

Definition at line 183 of file Actor.py.

Definition at line 43 of file Actor.py.

Definition at line 209 of file Actor.py.

Definition at line 40 of file Actor.py.

Definition at line 38 of file Actor.py.

Definition at line 41 of file Actor.py.

Definition at line 44 of file Actor.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties