1 package net.sourceforge.simplegamenet.connectaline; 2 3 import java.io.Serializable; 4 5 public class CALSquare implements Serializable { 6 7 private Integer playerID; 8 private boolean occupied; 9 10 CALSquare() { 11 this.playerID = null; 12 this.occupied = false; 13 } 14 15 public void setPlayerID(Integer playerID) { 16 this.playerID = playerID; 17 this.occupied = true; 18 } 19 20 public boolean getOccupied() { 21 return occupied; 22 } 23 24 public Integer getPlayerID() { 25 return playerID; 26 } 27 }