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

Class SelectableFisherComponent

source code

          Component --+        
                      |        
    SelectableComponent --+    
                          |    
SelectableBuildingComponent --+
                              |
                             SelectableFisherComponent

Class used to highlight the radius of a fisher. Highlights only the fishing grounds.

Nested Classes [hide private]
    Inherited from SelectableBuildingComponent
  ListHolder
Instance Methods [hide private]
    Inherited from SelectableBuildingComponent
 
__init__(self, tabs, enemy_tabs, active_tab=None, range_applies_only_on_island=True)
Used for initialization code that does not require any other components.
source code
 
deselect(self)
Runs neccassary steps to deselect the building.
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
 
select(self, reset_cam=False)
Runs necessary steps to select the building.
source code
 
set_selection_outline(self)
Only set the selection outline.
source code
    Inherited from SelectableComponent
 
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
 
save(self, db)
Will do nothing, but will be always called in componentholder code, even if not implemented.
source code
 
session(self) source code
Class Methods [hide private]
 
_do_select(cls, renderer, position, world, settlement, radius, range_applies_only_on_island) source code
    Inherited from SelectableBuildingComponent
 
_add_fake_tile(cls, x, y, layer, renderer)
Adds a fake tile to the position.
source code
 
_add_selected_tile(cls, tile, renderer, remember=True) source code
 
_init_fake_tile(cls)
Sets the _fake_tile_obj class variable with a ready to use fife object.
source code
 
deselect_building(cls, session)
@see select_building Used by building tool, allows incremental updates @return list of tiles that were deselected (only normal tiles, no fake tiles)
source code
 
reset(cls)
Called on session end to get rid of static data and init variables
source code
 
select_building(cls, session, position, settlement, radius, range_applies_only_on_island)
Select a hypothecial instance of this class.
source code
 
select_many(cls, buildings, renderer)
Same as calling select() on many instances, but way faster.
source code
    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 SelectableBuildingComponent
  _selected_fake_tiles = ListHolder()
  _selected_tiles = ListHolder()
  selection_color = 255, 255, 32, 192
    Inherited from SelectableComponent
  NAME = "selectablecomponent"
hash(x)
    Inherited from Component
  DEPENDENCIES = []
Method Details [hide private]

_do_select(cls, renderer, position, world, settlement, radius, range_applies_only_on_island)
Class Method

source code 
Overrides: SelectableBuildingComponent._do_select