test_class.file: Space Battle Simulation/SpaceBattleSimulation/src/test/java/com/perceptivesoftware/codedash/simulation/SpaceBattleSimulationTest.java
test_class.identifier: SpaceBattleSimulationTest
test_case.body: @Test
  	public void bomberAttacksDreadnaught(){
  		SpaceBattleSimulation sim = new SpaceBattleSimulation();
  		//One bomber should do 200,000 dmg per round.
  		//A Dreadnaught will do 1,000 dmg against a bomber.
  		//A deadnaught with full health will destroy a bomber in 3 rounds
  		
  		Bomber bomber = sim.new Bomber();
  		Dreadnaught dread = sim.new Dreadnaught();
  		
  		int startingHealth = dread.getHp();
  		
  		SpaceBattleSimulation.engagement(bomber, dread);
  		
  		int endingHealth = dread.getHp();
  		Assert.assertEquals(600000, (startingHealth - endingHealth));
  		
  	}
test_case.class_method_signature: SpaceBattleSimulationTest.bomberAttacksDreadnaught()
test_case.full_signature: @Test public void bomberAttacksDreadnaught()
test_case.identifier: bomberAttacksDreadnaught
test_case.invocations: getHp engagement getHp assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void bomberAttacksDreadnaught()
focal_class.file: Space Battle Simulation/SpaceBattleSimulation/src/main/java/com/perceptivesoftware/codedash/simulation/SpaceBattleSimulation.java
focal_class.identifier: SpaceBattleSimulation
focal_class.class_method_signature: SpaceBattleSimulation.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_class.class_method_signature: SpaceBattleSimulation.convertInputToList(String commaDelem)
focal_class.full_signature: protected static List<Ship> convertInputToList(String commaDelem)
focal_class.identifier: convertInputToList
focal_class.modifiers: protected static
focal_class.parameters: (String commaDelem)
focal_class.return: List<Ship>
focal_class.signature: List<Ship> convertInputToList(String commaDelem)
focal_class.class_method_signature: SpaceBattleSimulation.mapAbbreviationToShip(String shipAbbreviation)
focal_class.full_signature: protected static Ship mapAbbreviationToShip(String shipAbbreviation)
focal_class.identifier: mapAbbreviationToShip
focal_class.modifiers: protected static
focal_class.parameters: (String shipAbbreviation)
focal_class.return: Ship
focal_class.signature: Ship mapAbbreviationToShip(String shipAbbreviation)
focal_class.class_method_signature: SpaceBattleSimulation.battle(List<Ship> friendly, List<Ship> enemy)
focal_class.full_signature: protected static boolean battle(List<Ship> friendly, List<Ship> enemy)
focal_class.identifier: battle
focal_class.modifiers: protected static
focal_class.parameters: (List<Ship> friendly, List<Ship> enemy)
focal_class.return: boolean
focal_class.signature: boolean battle(List<Ship> friendly, List<Ship> enemy)
focal_class.class_method_signature: SpaceBattleSimulation.engagement(Ship enemy, Ship friend)
focal_class.full_signature: public static void engagement(Ship enemy, Ship friend)
focal_class.identifier: engagement
focal_class.modifiers: public static
focal_class.parameters: (Ship enemy, Ship friend)
focal_class.return: void
focal_class.signature: void engagement(Ship enemy, Ship friend)
focal_method.body: public static void engagement(Ship enemy, Ship friend){
  		while(!enemy.isDestroyed && friend.isDestroyed == false){
  			//Friendly attacks enemy
  			int friendAtkVal = friend.attack((Class<Ship>) enemy.getClass());
  			enemy.attacked(friendAtkVal);
  			
  			//Enemy attacks Friendly
  			int enemyAttackVal = enemy.attack((Class<Ship>) friend.getClass());
  			friend.attacked(enemyAttackVal);
  			
  		}
  	}
focal_method.class_method_signature: SpaceBattleSimulation.engagement(Ship enemy, Ship friend)
focal_method.full_signature: public static void engagement(Ship enemy, Ship friend)
focal_method.identifier: engagement
focal_method.invocations: attack getClass attacked attack getClass attacked
focal_method.modifiers: public static
focal_method.parameters: (Ship enemy, Ship friend)
focal_method.return: void
focal_method.signature: void engagement(Ship enemy, Ship friend)