Package horizons :: Package world :: Package building :: Module path :: Class Path
[hide private]
[frames] | no frames]

Class Path

source code

component.componentholder.ComponentHolder --+
                                            |
                                           Path

Object with path functionality

Instance Methods [hide private]
 
load(self, db, worldid) source code
 
init(self) source code
 
__init(self) source code
 
remove(self) source code
 
is_road(self, tile) source code
 
recalculate_surrounding_tile_orientation(self) source code
 
recalculate_orientation(self) source code
    Inherited from component.componentholder.ComponentHolder
 
__init__(self, *args, **kwargs) source code
 
add_component(self, component)
Adds new component to holder and sets the instance attribute on the component
source code
 
get_component(self, component) source code
 
get_component_by_name(self, name) source code
 
has_component(self, component_class)
Check if holder has component with component name
source code
 
initialize(self, **kwargs)
Has to be called every time a componentholder is created.
source code
 
remove_component(self, component_class)
Removes component from holder.
source code
 
save(self, db) source code
Class Methods [hide private]
    Inherited from component.componentholder.ComponentHolder
 
get_component_template(cls, component)
Returns the component template data given a component NAME
source code
Class Variables [hide private]
  walkable = True
    Inherited from component.componentholder.ComponentHolder
  class_mapping = {'AmbientSoundComponent': AmbientSoundComponen...
Method Details [hide private]

load(self, db, worldid)

source code 
Overrides: component.componentholder.ComponentHolder.load

remove(self)

source code 
Overrides: component.componentholder.ComponentHolder.remove