Examples of Musketeer


Examples of civquest.units.models.Musketeer

//     // for now to make it run
//     UnitModel aModel = nation.getUnitModel("Musketeer");

//     Unit unit = aModel.constructUnit();

    Unit unit = new Musketeer(field);
    Long unitID = unit.getID();
    this.setUnitID(unitID);

    unit.setField(field);
    Game.getGame().add(unit);
    Game.getMapData().setUnitOwner(unit, nation);
//     mapData.addUnit(unit, mapData.getField(location), nation);

    notifyAfter();
View Full Code Here

Examples of civquest.units.models.Musketeer

      MapObject newMapObject = null;
      // hack to make it run - TODO: think about a more elegant way of
      // mapping model names to the appropriate constructor call
      if (modelName.equals("units_musketeer")) {
        newMapObject = new Musketeer(moLoadedData, step);
      } else if (modelName.equals("city")) {
        newMapObject = new City(moLoadedData, step);
      }
      mapObjects.add(newMapObject);
      newMapObject.setField(this);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.