Beispiel #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();
        }
Beispiel #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);
        }
Beispiel #3
0
 abstract public void doMove(ThudBoard board);
Beispiel #4
0
 public override void doMove(ThudBoard board)
 {
     LinkedList <PawnPiece> pieces = board.getPieces(this.getSide());
 }
Beispiel #5
0
 public override void doMove(ThudBoard board)
 {
 }