Package Character.GCInstances

Examples of Character.GCInstances.Bowman


    luck = new Random();
  }

  private void initCharacters(Board initBoard, Race raceJ1, Race raceJ2) {
    // First player characters
    initBoard.getCase(2, 0).setCharac(new Bowman(raceJ1, J1));
    initBoard.getCase(3, 0).setCharac(new Bowman(raceJ1, J1));
    initBoard.getCase(4, 0).setCharac(new Magus(raceJ1, J1));
    initBoard.getCase(5, 0).setCharac(new Knight(raceJ1, J1));
    initBoard.getCase(6, 0).setCharac(new King(new KingRace(), J1));
    initBoard.getCase(7, 0).setCharac(new KnightBowman(raceJ1, J1));
    initBoard.getCase(8, 0).setCharac(new Knight(raceJ1, J1));
    initBoard.getCase(9, 0).setCharac(new Magus(raceJ1, J1));
    initBoard.getCase(10, 0).setCharac(new Bowman(raceJ1, J1));
    initBoard.getCase(11, 0).setCharac(new Bowman(raceJ1, J1));

    // Second player characters
    initBoard.getCase(2, Board.COLUMNS - 1).setCharac(
        new Bowman(raceJ2, J2));
    initBoard.getCase(3, Board.COLUMNS - 1).setCharac(
        new Bowman(raceJ2, J2));
    initBoard.getCase(4, Board.COLUMNS - 1)
        .setCharac(new Magus(raceJ2, J2));
    initBoard.getCase(5, Board.COLUMNS - 1).setCharac(
        new Knight(raceJ2, J2));
    initBoard.getCase(6, Board.COLUMNS - 1).setCharac(
        new KnightBowman(raceJ2, J2));
    initBoard.getCase(7, Board.COLUMNS - 1).setCharac(
        new King(new KingRace(), J2));
    initBoard.getCase(8, Board.COLUMNS - 1).setCharac(
        new Knight(raceJ2, J2));
    initBoard.getCase(9, Board.COLUMNS - 1)
        .setCharac(new Magus(raceJ2, J2));
    initBoard.getCase(10, Board.COLUMNS - 1).setCharac(
        new Bowman(raceJ2, J2));
    initBoard.getCase(11, Board.COLUMNS - 1).setCharac(
        new Bowman(raceJ2, J2));

    // Colums of wariors
    for (int i = 2; i < 12; i++) {
      initBoard.getCase(i, 1).setCharac(new Warrior(raceJ1, J1));
      initBoard.getCase(i, Board.COLUMNS - 2).setCharac(
View Full Code Here

TOP

Related Classes of Character.GCInstances.Bowman

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.