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

Type of property that belongs to a colour set, and can have houses and hotels built. More...

Inheritance diagram for Tiles.Street:
Tiles.Property Tiles.Tile

Public Member Functions

void SetUp (string name, int cost, int propertyNumber, string set, int initialRent, int rentWithColourSet, int[] improvedRent, int houseCost, int hotelCost)
 
int GetBuildingValue ()
 Gets the value of all houses and hotels on this street.
 
- Public Member Functions inherited from Tiles.Property
override void OnLanded (Player player)
 Handles functionality for player landing on this tile.
 
void Mortgage ()
 Mortgages this property.
 
void SellProperty ()
 Sells this property to the bank.
 
- Public Member Functions inherited from Tiles.Tile
void SetUp (string name)
 
void ShowOutline (Color startColor, Color endColour)
 
void HideOutline ()
 

Protected Member Functions

override void SetCard ()
 Sets the visual tile card from a prefab depending on the type of the tile.
 
override void PayRent (Player player)
 Handles paying rent to the owner of this property. This functionality is specific to properties.
 
- Protected Member Functions inherited from Tiles.Property
void SetUp (string name, int cost, int propertyNumber)
 
override void SetBoardTile ()
 Sets the name/cost text of this tile on the board.
 
override void ShowCard ()
 
override void HideCard ()
 
- Protected Member Functions inherited from Tiles.Tile
void ShowOutline ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseExit ()
 

Properties

int CurrentHouses [get]
 
int CurrentHotels [get]
 
- Properties inherited from Tiles.Property
Player OwnedBy [get, set]
 
int Cost [get]
 
int PropertyNumber [get]
 
bool Mortgaged [get, set]
 
int MortgagedValue [get]
 
int UnmortgagedValue [get]
 
- Properties inherited from Tiles.Tile
string Name [get, protected set]
 
GameObject Card [get, protected set]
 
bool InMortgageSelection [get, set]
 
bool InUnmortgageSelection [get, set]
 
bool InSellPropertySelection [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from Tiles.Property
int CurrentRent
 

Detailed Description

Type of property that belongs to a colour set, and can have houses and hotels built.

Member Function Documentation

◆ PayRent()

override void Tiles.Street.PayRent ( Player player)
protectedvirtual

Handles paying rent to the owner of this property. This functionality is specific to properties.

Parameters
playerThe player that needs to pay rent to the owner

Reimplemented from Tiles.Property.

◆ SetCard()

override void Tiles.Street.SetCard ( )
protectedvirtual

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

Reimplemented from Tiles.Tile.


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