Package civquest.map.combat

Examples of civquest.map.combat.CombatManager$AttMapObjectInfo


    Coordinate workingFieldPos = quadMap.getWorkingFieldPos();

    if (CombatCalculator.canNeighborAttack(gameData, attackings, workingFieldPos)) {
      Coordinate attPos = attackings.iterator().next().getField().getPosition();
      DamageManager damageManager = Game.getGame().getDamageManager();
      CombatManager combatManager = null;
      try {
        combatManager = new CombatManager(attackings, attPos,
                          workingFieldPos, damageManager);
      } catch (MethodCallerException ex) {
        Messages.getMessages().err("AttackWFAction", "Error: " + ex);
        Messages.getMessages().err("AttackWFAction", "CivQuest will abort now!");
        System.exit(-1);
      }

      combatManager.shoot();
     
//       boolean couldShoot = false;
//       do {
//         couldShoot = combatManager.shoot();
//       } while (couldShoot);
View Full Code Here

TOP

Related Classes of civquest.map.combat.CombatManager$AttMapObjectInfo

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.