// TT4DMove.java /** * * @author Sean Bridges * @version 1.0 */ public class TT4DMove implements Move { //--------------------------------------- //instance variables TT4DPoint point; Player player; //--------------------------------------- //constructors /** Creates new TT4DMove */ public TT4DMove(Player player, TT4DPoint point) { this.player = player; this.point = point; } //--------------------------------------- //instance methods /** * Return the value x + 3y + 9z + 27w */ public int toInt() { return point.toInt(); } /** The player who made the move. */ public Player maker() { return player; } public String toString() { return player.toString() + " " + point.toString(); } public TT4DPoint getPoint() { return point; } }//end class TT4DMove