Package horizons :: Package component :: Module stancecomponent :: Class NoneStance
[hide private]
[frames] | no frames]

Class NoneStance

source code

  Component --+    
              |    
StanceComponent --+
                  |
                 NoneStance

No settings for stance

Instance Methods [hide private]
    Inherited from StanceComponent
 
__init__(self)
Used for initialization code that does not require any other components.
source code
 
act(self)
Act according to current state This is called every few second in the instance code
source code
 
act_auto_attack(self)
Method executed when the instance has auto acquired target
source code
 
act_flee(self)
Method executed when the instance is trying to evade an attack
source code
 
act_idle(self)
Method executed when the instance is idle
source code
 
act_move_back(self)
Method executed when the instance is moving back to it's default location
source code
 
act_user_attack(self)
Method executed when the instance is trying to attack a target selected by the user
source code
 
act_user_move(self)
Method executed when the instance is moving to a location selected by the user
source code
 
get_state(self) source code
 
initialize(self)
This is called by the ComponentHolder after it set the instance.
source code
 
remove(self)
Removes component and reference to instance
source code
 
set_state(self, state) source code
    Inherited from Component
 
__gt__(self, other) source code
 
__lt__(self, other) source code
 
load(self, db, worldid)
This does on load what __init() and initalize() together do on constructions at runtime.
source code
 
save(self, db)
Will do nothing, but will be always called in componentholder code, even if not implemented.
source code
Class Methods [hide private]
    Inherited from Component
 
get_instance(cls, arguments=None)
This function is used to instantiate classes from yaml data.
source code
Class Variables [hide private]
  NAME = 'none_stance'
hash(x)
    Inherited from Component
  DEPENDENCIES = []
Properties [hide private]
    Inherited from Component
  session