@@ -0,0 +1,3442 @@
+/*%0A * MIT License%0A *%0A * Copyright (c) 2016 Andrew Michael Teller(https://github.com/AndrewMiTe)%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to deal%0A * in the Software without restriction, including without limitation the rights%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A * copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A * %0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Software.%0A * %0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0A * SOFTWARE.%0A */%0A%0Apackage Battle;%0A%0A/**%0A * Enumerates the finite ways in which a skill can Target Unit objects on a%0A * BattleField. Returns a Iterator object of valid targets when given a list of%0A * Unit objects mapped upon a BattleField.%0A * @author Andrew M. Teller (andrew.m.teller@gmail.com)%0A */%0Apublic enum Target %7B%0A  %0A  /**%0A   * The Unit with the targeting skill.%0A   */%0A  SELF,%0A%0A  /**%0A   * One Unit from the set of Unit objects on the same team that are within a%0A   * range, excluding the Unit with the targeting Skill. This range is adjusted%0A   * based on the distance from the closest ally to the Unit with the targeting%0A   * Skill.%0A   */%0A  CLOSE_ALLY,%0A%0A  /**%0A   * One Unit from the set of all Unit objects on the same team as the Unit with%0A   * the targeting Skill, including the Unit with the targeting Skill.%0A   */%0A  ANY_ALLY,%0A  %0A  /**%0A   * One Unit from the set of all Unit objects on the same team as the Unit with%0A   * the targeting Skill, excluding the Unit with the targeting Skill.%0A   */%0A  ANY_OTHER_ALLY,%0A%0A  /**%0A   * The set of all Unit objects on the same team as the Unit with the targeting%0A   * Skill.%0A   */%0A  ALL_ALLIES,%0A  %0A  /**%0A   * The set of all Unit objects on the same team as the Unit with the targeting%0A   * Skill, with exception to the Unit with the targeting Skill.%0A   */%0A  All_OTHER_ALLIES,%0A%0A  /**%0A   * One Unit from the set of opposing Unit objects that are within a range.%0A   * This range is adjusted based on the distance to the closest enemy of the%0A   * Unit with the targeting Skill.%0A   */%0A  CLOSE_ENEMY,%0A%0A  /**%0A   * One Unit from the set of Unit objects on the opposing side of the Unit with%0A   * the targeting Skill.%0A   */%0A  ANY_ENEMY,%0A%0A  /**%0A   * The set of all Unit objects on the opposing team to the Unit with the%0A   * targeting Skill.%0A   */%0A  ALL_ENEMIES,%0A%0A  /**%0A   * One Unit from the set of Unit objects involved in the Battle.%0A   */%0A  ANYONE,%0A  %0A  /**%0A   * One Unit from the set of Unit objects involved in the Battle, except the%0A   * Unit with the targeting Skill.%0A   */%0A  ANYONE_ELSE,%0A%0A  /**%0A   * The set of Unit objects that includes all members of the Battle.%0A   */%0A  EVERYONE,%0A  %0A  /**%0A   * The set of Unit objects that includes all members of the Battle, except the%0A   * Unit with the targeting Skill.%0A   */%0A  EVERYONE_ELSE;%0A  %0A%7D%0A

Create Target.java