Property Tycoon board, acts as a game manager. Tracks board tiles, bank, cards, and players.
More...
|
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) |
|
|
Vector2 | JailPosition [get] |
|
List< Tile > | Tiles [get] |
|
Property[] | TitleDeeds [get] |
|
Queue< ActionCard > | PotLuckCards [get] |
|
Queue< ActionCard > | OpportunityKnocksCards [get] |
|
int | FreeParkingSum [get, set] |
|
List< Player > | Players [get] |
|
int | AuctionPrice [get] |
|
int | BidAmount [get] |
|
Property Tycoon board, acts as a game manager. Tracks board tiles, bank, cards, and players.
◆ 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
-
folded | Indicates if the player chose to fold or not |
amount | The amount the player chose to bid |
◆ GetTileIndex()
int Board.GetTileIndex |
( |
string | name | ) |
|
Finds the index of a tile by its name.
- Parameters
-
name | The 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:
- PropertyTycoon/Assets/Scripts/Board.cs