Package civquest.units.gameChange

Examples of civquest.units.gameChange.ConstructUnit


      } else {
        if (manager.isCompleteVisible(to)) {
          if (after) {
            manager.addForeignUnit(unitID);
          }
          ConstructUnit constructUnit
            = new ConstructUnit(manager.getRestrictedToNation(),
                      mapData.getMapObjectPosition(unitID),
                      mapData.getMapObjectOwner(unitID));
          constructUnit.notify(before, after);
        } else {
          // do nothing, nothing is visible
        }
      }
    }
View Full Code Here


    if (position != null) {
      Field field = quadMap.getFieldAtPosition(position);
      Nation activeNation = Game.getGame().getActiveNation();
      if (field != null) {
        if (activeNation != null) {
          ConstructUnit newUnitChange
            = new ConstructUnit(field.getPosition(),
                      activeNation.getID());
          newUnitChange.execute();
        } else {
          Messages.getMessages().info("ConstructTestUnit", "QMapWarn",
                        "When constructing test unit: "
                        + "No active nation!");
        }
View Full Code Here

        if (this.scenarioEditor.getSelectedTab() == UNIT_TAB) {
            //only proceed if the unitTab is selected
            Nation nation = this.scenarioEditor.getSelectedNation();
            Coordinate coordinate = this.map.getWorkingFieldPos();
            if (coordinate != null) {
                ConstructUnit newUnitChange = new ConstructUnit(
                        coordinate, nation.getID());
                newUnitChange.execute();
            }
        }
    }
View Full Code Here

  private void constructConstructUnits() {
    Long[] unitIDs = getConstructedUnitIDs(coord);
    constructUnits = new ConstructUnit[unitIDs.length];
    for (int n = 0; n < unitIDs.length; n++) {
      long unitOwner = Game.getMapData().getMapObjectOwner(unitIDs[n]);
      constructUnits[n] = new ConstructUnit(manager.getResToNation(),
                          coord, unitOwner);
    }
  }
View Full Code Here

TOP

Related Classes of civquest.units.gameChange.ConstructUnit

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.