public void startGame(PLAYER argDwarves, PLAYER argTrolls) { board = new ThudBoard("thud", this); if (argDwarves == PLAYER.HUMAN) { dwarves = new HumanController(); } else { dwarves = new AIController(); } if (argTrolls == PLAYER.HUMAN) { trolls = new HumanController(); } else { trolls = new AIController(); } dwarves.setSide(SIDE.DWARF); trolls.setSide(SIDE.TROLL); startRound(); }
public void switchWith(ThudPiece argPiece, ThudBoard board) { foreach (NEIGHBOUR n in myNeighbours.Keys) { argPiece.setNeighbour(n, myNeighbours[n]); } board.addActor(argPiece); board.deleteFromBoard(this); }
abstract public void doMove(ThudBoard board);
public override void doMove(ThudBoard board) { LinkedList <PawnPiece> pieces = board.getPieces(this.getSide()); }
public override void doMove(ThudBoard board) { }