public static ChessSpriteFactory getInstance() { if (instance == null) { instance = new ChessSpriteFactory(); } return(instance); }
void IPointInterface.setChess(Chess chess) { this.currentChess = chess; setSprite(ChessSpriteFactory.getInstance().getChessSprite(chess)); }
void IPointInterface.ChessMoveIn(Chess chess) { this.currentChess = chess; this.pickup = false; setSprite(ChessSpriteFactory.getInstance().getChessSprite(chess)); }