Package horizons :: Package component :: Module selectablecomponent :: Class SelectableShipComponent
[hide private]
[frames] | no frames]

Class SelectableShipComponent

source code

      Component --+        
                  |        
SelectableComponent --+    
                      |    
SelectableUnitComponent --+
                          |
                         SelectableShipComponent

Instance Methods [hide private]
 
select(self, reset_cam=False)
Runs necessary steps to select the ship.
source code
 
deselect(self)
Runs necessary steps to deselect the ship.
source code
    Inherited from SelectableComponent
 
__init__(self, tabs, enemy_tabs, active_tab=None)
Used for initialization code that does not require any other components.
source code
 
remove(self)
Removes component and reference to instance
source code
 
selected(self) source code
 
show_menu(self, jump_to_tabclass=None)
Shows tabwidget tabs of this instance.
source code
    Inherited from Component
 
__gt__(self, other) source code
 
__lt__(self, other) 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
Class Methods [hide private]
    Inherited from SelectableComponent
 
get_instance(cls, arguments)
This function is used to instantiate classes from yaml data.
source code
Class Variables [hide private]
    Inherited from SelectableComponent
  NAME = "selectablecomponent"
hash(x)
    Inherited from Component
  DEPENDENCIES = []
Properties [hide private]
    Inherited from Component
  session
Method Details [hide private]

select(self, reset_cam=False)

source code 

Runs necessary steps to select the ship.

Overrides: SelectableComponent.select

deselect(self)

source code 

Runs necessary steps to deselect the ship.

Overrides: SelectableComponent.deselect