Class MoneySquare

java.lang.Object
com.mygdx.game.Logic.Squares.Square
com.mygdx.game.Logic.Squares.MoneySquare
All Implemented Interfaces:
java.io.Serializable

public class MoneySquare
extends Square
Square that implements the win/lose [AMOUNT] function
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class com.mygdx.game.Logic.Squares.Square

    name
  • Constructor Summary

    Constructors
    Constructor Description
    MoneySquare​(java.lang.String name, float money)  
  • Method Summary

    Modifier and Type Method Description
    void runAction​(GameInstance game)
    To be run when the Player lands on this square

    Methods inherited from class com.mygdx.game.Logic.Squares.Square

    getI, getJ, getName, setIJ, toString

    Methods inherited from class java.lang.Object

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

    • MoneySquare

      public MoneySquare​(java.lang.String name, float money)
  • Method Details

    • runAction

      public void runAction​(GameInstance game)
      To be run when the Player lands on this square
      Adds the ammoun the study hours of the current Player
      Specified by:
      runAction in class Square
      Parameters:
      game - The current Game Instance