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