|
override void | ForSaleDecision (Property property) |
| Shows for sale prompt to player or manually decides action if bot.
|
|
override void | BidDecision () |
| Sets this player as the current bidder and gives player button choices.
|
|
void | StartTurn () |
| Starts the player's turn, setting them as the active player and updating the UI.
|
|
void | ShiftTileIndex (int offset) |
| Sets the newTileIndex depending on the offset from the currentTileIndex, e.g. offset of -3 sets newTileIndex back 3 spaces.
|
|
void | SetNewTileIndex (int newTileIndex) |
| Sets the new tile index for the player, ensuring it wraps around the board if necessary.
|
|
void | CompleteTurn () |
| Called once tile functionality is complete and either ends the turn or allows for another turn, ensuring player has positive money.
|
|
void | WinAuction (Property property, int price) |
| Gives the player the property that was auctioned for the auction price and gives them the title deed card.
|
|
void | GiveMoney (int amount) |
| Gives the player a specified amount of money.
|
|
void | TakeMoney (int amount) |
| Takes a specified amount of money from the player.
|
|
void | AddGetOutOfJailFreeCard (ActionCard actionCard) |
| Adds a Get Out Of Jail Free card to the player's collection.
|
|
void | TakeTitleDeed (Property property) |
|
void | SetSprite (Sprite sprite) |
| Sets the sprite for the player game object.
|
|
int | GetCurrentTileIndex () |
| Gets the current tile index of the player. This method is primarily used for unit testing to verify player position on the board and movement logic.
|
|
|
override void | RollDiceDecision () |
| Shows prompt to payer or manually rolls if bot.
|
|
override void | EndTurnDecision () |
| Shows prompts to player or manually decides action if bot.
|
|
override void | InJailDecision () |
| Shows prompt to player or manually decides action if bot.
|
|
override void | RaiseFundsDecision () |
| Shows prompt to player or manually raises funds if bot.
|
|
void | OnEndTurn () |
| Handles the player's turn ending and signaling the board to end the turn.
|
|
void | OnPostBail () |
| Player pays fine and leaves jail.
|
|
void | OnGetOutOfJailFree () |
| Player returns get out of jail free card to board card pile and leaves jail.
|
|
void | OnRemainInJail () |
| Handles the player's decision to remain in jail, hiding the jail prompt and ending the turn.
|
|
void | OnBuy () |
| Buys the property that the player is currently on and gives the player the title deed card.
|
|
void | OnAuction () |
| Auctions the property that the player is currently on.
|
|
void | OnBid () |
|
void | OnFold () |
|
List< Property > | GetMortgageableProperties () |
|
List< Property > | GetUnmortgageableProperties () |
|
List< Property > | GetSellableProperties () |
|
bool | CanMortgage () |
|
bool | CanSellProperty () |
|
|
int | moveTest |
|
List< ActionCard > | GetOutOfJailFreeCards |
|
static Player | CurrentBidder |
|
const int | PostBailAmount = 50 |
|
Sprite | Sprite [get] |
|
string | Name [get, set] |
|
int | Money = 1500 [get] |
|
Property[] | TitleDeeds [get] |
|
bool | InJail [get] |
|
int | DiceRoll [get] |
|
int | Houses [get] |
|
int | Hotels [get] |
|
bool | PassedGo = true [get] |
|
◆ BidDecision()
override void SmartBot.BidDecision |
( |
| ) |
|
|
virtual |
Sets this player as the current bidder and gives player button choices.
Reimplemented from Player.
◆ EndTurnDecision()
override void SmartBot.EndTurnDecision |
( |
| ) |
|
|
protectedvirtual |
Shows prompts to player or manually decides action if bot.
Reimplemented from Player.
◆ ForSaleDecision()
override void SmartBot.ForSaleDecision |
( |
Property | property | ) |
|
|
virtual |
Shows for sale prompt to player or manually decides action if bot.
- Parameters
-
property | The property the player landed on |
Reimplemented from Player.
◆ InJailDecision()
override void SmartBot.InJailDecision |
( |
| ) |
|
|
protectedvirtual |
Shows prompt to player or manually decides action if bot.
Reimplemented from Player.
◆ RaiseFundsDecision()
override void SmartBot.RaiseFundsDecision |
( |
| ) |
|
|
protectedvirtual |
Shows prompt to player or manually raises funds if bot.
Reimplemented from Player.
◆ RollDiceDecision()
override void SmartBot.RollDiceDecision |
( |
| ) |
|
|
protectedvirtual |
Shows prompt to payer or manually rolls if bot.
Reimplemented from Player.
The documentation for this class was generated from the following file:
- PropertyTycoon/Assets/Scripts/SmartBot.cs