PropertyTycoon
 
Loading...
Searching...
No Matches
Tiles.Tile Class Reference

Tile is the base class that all squares on the board derive from. More...

Inheritance diagram for Tiles.Tile:
Tiles.Action Tiles.FreeParking Tiles.Jail Tiles.Property Tiles.Tax Tiles.Station Tiles.Street Tiles.Utility

Public Member Functions

void SetUp (string name)
 
virtual void OnLanded (Player player)
 Handles functionality for player landing on this tile.
 
void ShowOutline (Color startColor, Color endColour)
 
void HideOutline ()
 

Protected Member Functions

virtual void SetCard ()
 Sets the visual tile card from a prefab depending on the type of the tile.
 
virtual void SetBoardTile ()
 Sets the name/cost text of this tile on the board.
 
virtual void ShowCard ()
 
virtual void HideCard ()
 
void ShowOutline ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseExit ()
 

Properties

string Name [get, protected set]
 
GameObject Card [get, protected set]
 
bool InMortgageSelection [get, set]
 
bool InUnmortgageSelection [get, set]
 
bool InSellPropertySelection [get, set]
 

Detailed Description

Tile is the base class that all squares on the board derive from.

Member Function Documentation

◆ OnLanded()

virtual void Tiles.Tile.OnLanded ( Player player)
virtual

Handles functionality for player landing on this tile.

Parameters
playerThe player that landed on the tile

Reimplemented in Tiles.Action, Tiles.FreeParking, Tiles.Jail, Tiles.Property, and Tiles.Tax.

◆ SetBoardTile()

virtual void Tiles.Tile.SetBoardTile ( )
protectedvirtual

Sets the name/cost text of this tile on the board.

Reimplemented in Tiles.Property, and Tiles.Tax.

◆ SetCard()

virtual void Tiles.Tile.SetCard ( )
protectedvirtual

Sets the visual tile card from a prefab depending on the type of the tile.

Reimplemented in Tiles.Action, Tiles.Station, Tiles.Street, and Tiles.Utility.


The documentation for this class was generated from the following file: