C# Class PlayerActionBuildHousing, tf_client

An action for building housing on a section of land.
Inheritance: PlayerAction
Mostrar archivo Open project: wids-eria/tf_client

Public Properties

Property Type Description
buildings Building[],

Private Properties

Property Type Description
Awake void
Start void

Public Methods

Method Description
GetBuildingWithCapacity ( int capacity ) : Building,

Gets the building with capacity up to that specified.

IsPermittedOnResourceTile ( ResourceTile, tile ) : bool

Determines whether this action is permitted on the specified tile.

Protected Methods

Method Description
DisplayControlsContents ( ) : void

Displays the controls contents.

DoResourceCalculations ( ResourceTileSelection, selection ) : bool

Private Methods

Method Description
Awake ( ) : void

Initialize field modifiers.

Start ( ) : void

Initialize the gui styles as needed.

Method Details

DisplayControlsContents() protected method

Displays the controls contents.
protected DisplayControlsContents ( ) : void
return void

DoResourceCalculations() protected method

protected DoResourceCalculations ( ResourceTileSelection, selection ) : bool
selection ResourceTileSelection,
return bool

GetBuildingWithCapacity() public method

Gets the building with capacity up to that specified.
public GetBuildingWithCapacity ( int capacity ) : Building,
capacity int /// Capacity. ///
return Building,

IsPermittedOnResourceTile() public method

Determines whether this action is permitted on the specified tile.
public IsPermittedOnResourceTile ( ResourceTile, tile ) : bool
tile ResourceTile, /// The resource tile in question. ///
return bool

Property Details

buildings public_oe property

The buildings.
public Building[], buildings
return Building[],