Skip to content
SGover edited this page Nov 5, 2013 · 6 revisions

classes

alpha

##player ###attributes

  • name -the player name
  • token - the player playing tool
  • assets - the properties the player own.can be streets or utilities or railways
  • money - the amount of money the player posess
  • currBlock - the current block location of the player
  • inJail - if the player is in jail this equals True
  • Bankrupt - a flag if the player has declared bankruptcy

###functions

  • init(self,name,money) - create a instance of the class
  • buy(self,asset)- adding this asset to player assets and dicrease the amount of money by asset.value
  • payto(self,amount)- remove and returns the amount of money specified
  • applyCard(self,card) - apllying a card action to this player
  • applyBlock(self,boardBlock)-

##asset ###attributes ###functions ##deck ###attributes ###functions ##board ###attributes ###functions ##block ###attributes ###functions ##assetBlock ###attributes ###functions ##cardBlock ###attributes ###functions ##initFromFile ###attributes ###functions

Clone this wiki locally