C# Class PlayerActionBuildHousing, tf_client

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

Méthodes publiques

Свойство Type Description
buildings Building[],

Private Properties

Свойство Type Description
Awake void
Start void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
DisplayControlsContents ( ) : void

Displays the controls contents.

DoResourceCalculations ( ResourceTileSelection, selection ) : bool

Private Methods

Méthode Description
Awake ( ) : void

Initialize field modifiers.

Start ( ) : void

Initialize the gui styles as needed.

Method Details

DisplayControlsContents() protected méthode

Displays the controls contents.
protected DisplayControlsContents ( ) : void
Résultat void

DoResourceCalculations() protected méthode

protected DoResourceCalculations ( ResourceTileSelection, selection ) : bool
selection ResourceTileSelection,
Résultat bool

GetBuildingWithCapacity() public méthode

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

IsPermittedOnResourceTile() public méthode

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

Property Details

buildings public_oe property

The buildings.
public Building[], buildings
Résultat Building[],