Class CardSquare

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

public class CardSquare
extends Square
Square type that implements the Pick A Card function
See Also:
Serialized Form
  • Field Summary

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

    name
  • Constructor Summary

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

    • CardSquare

      public CardSquare​(java.lang.String name)
  • Method Details

    • runAction

      public void runAction​(GameInstance game)
      To be run when the Player lands on this square
      Draws a random card and notifies the GameInstance
      Specified by:
      runAction in class Square
      Parameters:
      game - The current Game Instance