Package com.drakulo.games.ais.core.delayed

Examples of com.drakulo.games.ais.core.delayed.BuildingAction


    // Robot release
    GameData.getSelectedColony().releaseRobots(a.getRobotsUsed());

    // Deletion of the action in the GameData
    if (a instanceof BuildingAction) {
      BuildingAction ba = (BuildingAction) a;
      GameData.getSelectedColony().getBuildingActions().remove(ba);

      // If the action was a building then unselect the building
      if (ba.getBuilding().isUnderConstruction()) {
        // Call to selectBuilding method to handle buttons state
        // properly
        this.selectBuilding(null);

        // TODO Play destruction sound
View Full Code Here


        return;
      }

      // Create the action
      int duration = 5; // TODO extract into building config file
      BuildingAction ba = new BuildingAction(
          GameData.getSelectedColony(), costMap, b, duration, 1, true);
      ba.setCallback(new Runnable() {

        @Override
        public void run() {
          if (b.equals(SectorState.this.selectedBuilding)) {
            SectorState.this.selectBuilding(b);
View Full Code Here

      return;
    }

    ba.getBuilding().setX(tileX);
    ba.getBuilding().setY(tileY);
    final BuildingAction nba = ba.clone();
    final Colony c = GameData.getSelectedColony();
    nba.setCallback(new Runnable() {

      @Override
      public void run() {
        BuildingHelper.createCMConstructionCallback(tileX, tileY, c);
      }
View Full Code Here

TOP

Related Classes of com.drakulo.games.ais.core.delayed.BuildingAction

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.