Ejemplo n.º 1
0
 /**
  * Place a minion onto the board. Does not trigger any events.
  *
  * <p>This is a function to place a minion on the board. Use this function only if you want no
  * events to be trigger upon placing the minion.
  *
  * @param minion The minion to be placed on the board. The minion is placed on the right-most
  *     space.
  * @throws HSInvalidPlayerIndexException
  */
 public void placeMinion(int playerIndex, Minion minion) throws HSInvalidPlayerIndexException {
   minion.isInHand(false);
   if (playerIndex == 0) p0_minions_.add(minion);
   else if (playerIndex == 1) p1_minions_.add(minion);
   else throw new HSInvalidPlayerIndexException();
   this.allMinionsFIFOList_.add(new MinionPlayerIDPair(minion, playerIndex));
 }