Class TurnSquare

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

public class TurnSquare
extends Square
See Also:
Serialized Form
  • Field Summary

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

    name
  • Constructor Summary

    Constructors
    Constructor Description
    TurnSquare​(java.lang.String name, int turns)  
  • 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

    • TurnSquare

      public TurnSquare​(java.lang.String name, int turns)
  • Method Details

    • runAction

      public void runAction​(GameInstance game)
      To be run when the Player lands on this square
      Removes or adds the specified turns number to the player
      Specified by:
      runAction in class Square
      Parameters:
      game - The current Game Instance