Package horizons :: Package gui :: Package mousetools :: Module buildingtool :: Class ShipBuildingToolLogic
[hide private]
[frames] | no frames]

Class ShipBuildingToolLogic

source code

Helper class to separate the logic needed when building from a ship from the main building tool.

Instance Methods [hide private]
 
__init__(self, ship) source code
 
highlight_buildable(self, building_tool, tiles_to_check=None)
Highlights all buildable tiles.
source code
 
on_escape(self, session) source code
 
remove(self, session) source code
 
add_change_listener(self, instance, building_tool) source code
 
remove_change_listener(self, instance, building_tool) source code
 
continue_build(self) source code
Method Details [hide private]

highlight_buildable(self, building_tool, tiles_to_check=None)

source code 

Highlights all buildable tiles.

Parameters:
  • tiles_to_check - list of tiles to check for coloring.