Package com.mygdx.game.Logic
Class Pawn
java.lang.Object
com.mygdx.game.Logic.Pawn
- All Implemented Interfaces:
java.io.Serializable
public class Pawn
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Pawn(java.lang.String name)
-
Method Summary
Modifier and Type Method Description Square
getCurrentSquare()
Square
getOldSquare()
void
setCurrentSquare(Square currentSquare)
Sets the input parameter as the currentSquare and its previous value to the oldSquarejava.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Pawn
public Pawn(java.lang.String name)- Parameters:
name
- Creates a Pawn Object
-
-
Method Details
-
setCurrentSquare
Sets the input parameter as the currentSquare and its previous value to the oldSquare- Parameters:
currentSquare
- ASquare
from the board
-
getCurrentSquare
-
getOldSquare
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-