Package com.drakulo.games.ais.core

Examples of com.drakulo.games.ais.core.Colony.updateResource()


                for (Resource r : Resource.values()) {
                  BigDecimal d = sa.getCostMap().get(r);
                  if (d == null) {
                    continue;
                  }
                  cc.updateResource(r, d.negate());
                }
                GameData.getSelectedColony().addSpecialAction(
                    sa);
              } else {
                // TODO Play error sound
View Full Code Here


    // Remove from sender and add to receiver...
    for (Resource r : resources) {
      // Send...
      sender.updateResource(r, map.get(r).negate());
      // Receive...
      receiver.updateResource(r, map.get(r));
    }
    hide();
  }

  protected void updateSenderData() {
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.