List of all members.
Detailed Description
Definition at line 22 of file Actor.py.
Member Function Documentation
| def cell.Actor.Actor.__init__ |
( |
|
self |
) |
|
| def cell.Actor.Actor.addEventProc |
( |
|
self, |
|
|
|
eventId, |
|
|
|
proc | |
|
) |
| | |
| 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 | |
|
) |
| | |
| 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 | |
|
) |
| | |
| def cell.Actor.Actor.doHealthRegen |
( |
|
self |
) |
|
| 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 | |
|
) |
| | |
| 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 | |
|
) |
| | |
| def cell.Actor.Actor.getTargetEntity |
( |
|
self |
) |
|
| 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 |
) |
|
| def cell.Actor.Actor.onTimer |
( |
|
self, |
|
|
|
timerId, |
|
|
|
userData | |
|
) |
| | |
| 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 | |
|
) |
| | |
| def cell.Actor.Actor.rpcProcessStringEvent |
( |
|
self, |
|
|
|
sourceId, |
|
|
|
eventType, |
|
|
|
eventString | |
|
) |
| | |
| def cell.Actor.Actor.rpcReceiveDamage |
( |
|
self, |
|
|
|
damage, |
|
|
|
sourceId | |
|
) |
| | |
| 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 |
) |
|
| 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
The documentation for this class was generated from the following file:
- E:/project/Anoria2/bigworld/anoria/res/scripts/cell/Actor.py