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