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