Package horizons :: Package component :: Module namedcomponent :: Class InhabitantNameComponent
[hide private]
[frames] | no frames]

Class InhabitantNameComponent

source code

 Component --+    
             |    
NamedComponent --+
                 |
                InhabitantNameComponent

Instance Methods [hide private]
 
_possible_names(self) source code
    Inherited from NamedComponent
 
__init__(self, name=None)
Used for initialization code that does not require any other components.
source code
 
get_default_name(self) source code
 
initialize(self)
This is called by the ComponentHolder after it set the instance.
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
 
set_name(self, name=None)
Actually sets the name.
source code
    Inherited from Component
 
__gt__(self, other) source code
 
__lt__(self, other) source code
 
remove(self)
Removes component and reference to instance
source code
Class Methods [hide private]
    Inherited from NamedComponent
 
reset(cls) source code
    Inherited from Component
 
get_instance(cls, arguments=None)
This function is used to instantiate classes from yaml data.
source code
Class Variables [hide private]
    Inherited from NamedComponent
  NAME = 'namedcomponent'
hash(x)
  names_used = []
    Inherited from Component
  DEPENDENCIES = []
Properties [hide private]
    Inherited from Component
  session
Method Details [hide private]

_possible_names(self)

source code 
Overrides: NamedComponent._possible_names