Package org.darkhelm.dragonchess.shared.pieces

Examples of org.darkhelm.dragonchess.shared.pieces.Move


      // get the board set's hash for this move.
      hash = set.hash();
     
      // Load the move into the returned array.
      ret.add(new Move(hash, 0, pos.getBoard(), pos.getHoriz(), pos.getVert(),
          MoveTypes.MOVE));
    }
   
    return ret;
  }
View Full Code Here


    } else {
      type = MoveTypes.CAPTURE;
    }

    // Load the move into the returned array.
    ret.add(new Move(hash, score, boardDest.getType(), horizDest, vertDest,
        type));

    return ret;
  }
View Full Code Here

        Piece piece = new Piece(hash, bPiece.getType(), team,
            pDef.getValue());

        if (getSet().isFrozen(getType(), horiz, vert)) {
          piece.addMove(new Move(getSet().hash(), 0, getType(),
              horiz, vert, MoveTypes.FREEZE));
        } else {
          piece.addAllMoves(moves.getMoves(team, this, horiz, vert));
        }
View Full Code Here

      } else {
        type = MoveTypes.CAPTURE;
      }

      // Move is added to the return list.
      ret.add(new Move(hash, score, boardDest.getType(), horizDest,
          vertDest, type));

      // If a capture is performed, stop.
      if (score > 0) {
        break;
View Full Code Here

TOP

Related Classes of org.darkhelm.dragonchess.shared.pieces.Move

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.