Public Member Functions | Public Attributes

cell.Avatar.Avatar Class Reference

Inherits Actor::Actor.

List of all members.

Public Member Functions

def __init__
def onTimer
 onTimer() is the regular update tick processor for Avatar.
def rpc_setTarget
 rpc_setTarget is called by the client whenever it targets some entity
def rpcAutoAttackToggle
 this function is a toggle: calling it when already auto attacking will turn auto attack off again
def rpcSay
def beginAutoAttack
def targetLost
def eventUnderAttack
 eventUnderAttack is received when ever anything hostile is done to this Actor.

Public Attributes

 isPlayer
 name
 targetId
 id

Detailed Description

Definition at line 21 of file Avatar.py.


Member Function Documentation

def cell.Avatar.Avatar.__init__ (   self  ) 

Definition at line 23 of file Avatar.py.

def cell.Avatar.Avatar.beginAutoAttack (   self  ) 

Definition at line 122 of file Avatar.py.

def cell.Avatar.Avatar.eventUnderAttack (   self,
  attackerId,
  eventValue 
)

eventUnderAttack is received when ever anything hostile is done to this Actor.

Parameters:
 attackerId is the entity id of the hostile entity
 eventValue is the type of hostile activity

Definition at line 159 of file Avatar.py.

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

onTimer() is the regular update tick processor for Avatar.

Think of it as Avatar's brain

Parameters:
 timerId several timers can be started with differing timerIds
 userData can be used to pass in info from the function starting the timer

Definition at line 50 of file Avatar.py.

def cell.Avatar.Avatar.rpc_setTarget (   self,
  id,
  entityId 
)

rpc_setTarget is called by the client whenever it targets some entity

Parameters:
 id is the id of the calling client entity
 entityId is the id of the entity being targeted

Definition at line 89 of file Avatar.py.

def cell.Avatar.Avatar.rpcAutoAttackToggle (   self,
  id 
)

this function is a toggle: calling it when already auto attacking will turn auto attack off again

Parameters:
 id is the id of the client entity making the call

Definition at line 104 of file Avatar.py.

def cell.Avatar.Avatar.rpcSay (   self,
  id,
  message 
)

Definition at line 112 of file Avatar.py.

def cell.Avatar.Avatar.targetLost (   self  ) 

Definition at line 144 of file Avatar.py.


Member Data Documentation

Definition at line 113 of file Avatar.py.

Definition at line 26 of file Avatar.py.

Definition at line 27 of file Avatar.py.

Definition at line 96 of file Avatar.py.


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