Package com.mygdx.game.Logic.Cards
Class MoveCard
java.lang.Object
com.mygdx.game.Logic.Cards.Card
com.mygdx.game.Logic.Cards.MoveCard
public class MoveCard extends Card
Card Type that implements the go to [LOCATION] function
-
Field Summary
Fields inherited from class com.mygdx.game.Logic.Cards.Card
description
-
Constructor Summary
Constructors Constructor Description MoveCard(java.lang.String description, float location)
-
Method Summary
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
-
MoveCard
public MoveCard(java.lang.String description, float location)
-
-
Method Details
-
runAction
To be called after the user has been shown the card.
Moves the player to the designated square -
setSquare
- Parameters:
board
- To be called before passing card to the UI. Traslates numeric pointer of square to aSquare
object
-