PropertyTycoon
 
Loading...
Searching...
No Matches
Board Class Reference

Property Tycoon board, acts as a game manager. Tracks board tiles, bank, cards, and players. More...

Inheritance diagram for Board:

Public Member Functions

void EndTurn ()
 Ends the current players turn and starts the next players turn.
 
void RemovePlayer ()
 Removes the current player from the game because they went bankrupt and starts the next players turn.
 
void StartAuction (Property property)
 Gets a list of all the players who can auction, and starts from the current player.
 
void EndBid (bool folded, int amount=0)
 Ends the current bidders turn and starts the next, removing them from the list of bidders if they chose to fold or updating the auction price if they chose to bid.
 
int GetTileIndex (string name)
 Finds the index of a tile by its name.
 
bool CanAuction ()
 Returns true if at least 2 players have passed go and are out of jail and have the minimum amount to bid.
 
void GiveTitleDeed (Property property)
 
void TakeTitleDeed (Property property)
 

Properties

Vector2 JailPosition [get]
 
List< TileTiles [get]
 
Property[] TitleDeeds [get]
 
Queue< ActionCardPotLuckCards [get]
 
Queue< ActionCardOpportunityKnocksCards [get]
 
int FreeParkingSum [get, set]
 
List< PlayerPlayers [get]
 
int AuctionPrice [get]
 
int BidAmount [get]
 

Detailed Description

Property Tycoon board, acts as a game manager. Tracks board tiles, bank, cards, and players.

Member Function Documentation

◆ CanAuction()

bool Board.CanAuction ( )

Returns true if at least 2 players have passed go and are out of jail and have the minimum amount to bid.

Returns
Whether or not auctioning is possible

◆ EndBid()

void Board.EndBid ( bool folded,
int amount = 0 )

Ends the current bidders turn and starts the next, removing them from the list of bidders if they chose to fold or updating the auction price if they chose to bid.

Parameters
foldedIndicates if the player chose to fold or not
amountThe amount the player chose to bid

◆ GetTileIndex()

int Board.GetTileIndex ( string name)

Finds the index of a tile by its name.

Parameters
nameThe name of the tile to find.
Returns
The index of the tile with the specified name.

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