-
Notifications
You must be signed in to change notification settings - Fork 4
Player
veera83372 edited this page Feb 14, 2018
·
2 revisions
name is an string , which holds name of the player
cash is a value ,which represents amount that player posses at that moment
shares is a collection of shares that player has bought from different hotels
tiles is a collection of tiles from which player can place a tile in market
ID is a uniq identity given by game to indicate players turn
getName returns the name of the player
getCash returns the value of cash that player has
getShareDetails returns the details of shares that player has bought from different hotels
addCash increase the amount of cash that player has , by a value
deductCash decrease the amount of cash that player has , by a value
addShare changes
addShares
removeShare
removeShares
addTile
removeTile
setID
getID