Example #1
0
        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();
        }
Example #2
0
        public void switchWith(ThudPiece argPiece, ThudBoard board)
        {
            foreach (NEIGHBOUR n in myNeighbours.Keys)
            {
                argPiece.setNeighbour(n, myNeighbours[n]);
            }

            board.addActor(argPiece);
            board.deleteFromBoard(this);
        }
Example #3
0
 abstract public void doMove(ThudBoard board);
Example #4
0
 public override void doMove(ThudBoard board)
 {
     LinkedList <PawnPiece> pieces = board.getPieces(this.getSide());
 }
Example #5
0
 public override void doMove(ThudBoard board)
 {
 }