Class MoneyCard

java.lang.Object
com.mygdx.game.Logic.Cards.Card
com.mygdx.game.Logic.Cards.MoneyCard

public class MoneyCard
extends Card
Card Type that implements the win/lose [AMMOUNT] hours function
  • Field Summary

    Fields inherited from class com.mygdx.game.Logic.Cards.Card

    description
  • Constructor Summary

    Constructors
    Constructor Description
    MoneyCard​(java.lang.String description, float amount)  
  • Method Summary

    Modifier and Type Method Description
    void runAction​(Player aPlayer)
    To be called after the user has been shown the card.

    Methods inherited from class com.mygdx.game.Logic.Cards.Card

    getDescription

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MoneyCard

      public MoneyCard​(java.lang.String description, float amount)
  • Method Details

    • runAction

      public void runAction​(Player aPlayer)
      To be called after the user has been shown the card.
      Adds the ammount specified to the current Study Hours of the player
      Specified by:
      runAction in class Card
      Parameters:
      aPlayer - The current Player