Skip to content
Snippets Groups Projects
Commit bc50831a authored by chris's avatar chris
Browse files

CANNON PROJECT

parent 8b147763
No related branches found
No related tags found
No related merge requests found
...@@ -230,7 +230,7 @@ public class CannonArtillerySimulation { ...@@ -230,7 +230,7 @@ public class CannonArtillerySimulation {
paladinID.setApplicationID(13); paladinID.setApplicationID(13);
paladinID.setEntityID(25); paladinID.setEntityID(25);
entityStatePdu.setEntityID(paladinID); entityStatePdu.setEntityID(paladinID);
EntityType paladinType = new EntityType(); //1.1.225.4.3.7 M109A2 Paladin (Self-proppelled howitzer) EntityType paladinType = new EntityType(); //1.1.225.4.3.7 M109A6 Paladin (Self-proppelled howitzer)
paladinType.setEntityKind(EntityKind.PLATFORM); paladinType.setEntityKind(EntityKind.PLATFORM);
paladinType.setDomain(Domain.inst(PlatformDomain.LAND)); paladinType.setDomain(Domain.inst(PlatformDomain.LAND));
paladinType.setCountry(Country.UNITED_STATES_OF_AMERICA_USA); paladinType.setCountry(Country.UNITED_STATES_OF_AMERICA_USA);
...@@ -323,7 +323,7 @@ public class CannonArtillerySimulation { ...@@ -323,7 +323,7 @@ public class CannonArtillerySimulation {
Double range = Math.sqrt(dx * dx + dy * dy); Double range = Math.sqrt(dx * dx + dy * dy);
System.out.println("THE M109A6 PALADIN WILL FIRE 6 VOLLEYS OF HE/PD USING CHARGE 1L FOR DISTANCE OF " + range + " METERS AT HIGH ANGLE"); System.out.println("THE M109A6 PALADIN WILL FIRE 6 VOLLEYS OF HE/PD USING CHARGE 1L FOR DISTANCE OF " + range + " METERS AT HIGH ANGLE");
CommentReliablePdu bmpDestroyedComment = pduFactory.makeCommentReliablePdu("BMP2 DESTROYED BY M109A2 AFTER SIX VOLLEYS OF HE/PD ON TARGET"); CommentReliablePdu bmpDestroyedComment = pduFactory.makeCommentReliablePdu("BMP2 DESTROYED BY M109A6 AFTER SIX VOLLEYS OF HE/PD ON TARGET");
while (loopCount < MAX_LOOP_COUNT) // loop the simulation while allowed, can set additional conditions to break while (loopCount < MAX_LOOP_COUNT) // loop the simulation while allowed, can set additional conditions to break
{ {
String narrativeMessage1, narrativeMessage2, narrativeMessage3, narrativeMessage4; String narrativeMessage1, narrativeMessage2, narrativeMessage3, narrativeMessage4;
...@@ -355,7 +355,7 @@ public class CannonArtillerySimulation { ...@@ -355,7 +355,7 @@ public class CannonArtillerySimulation {
// make your reports: narrative code for CommentPdu here (set all to empty strings to avoid sending) // make your reports: narrative code for CommentPdu here (set all to empty strings to avoid sending)
narrativeMessage1 = "MV3500 ExampleSimulationProgram"; narrativeMessage1 = "MV3500 ExampleSimulationProgram";
narrativeMessage2 = "runSimulation() loop " + loopCount; narrativeMessage2 = "runSimulation() loop " + loopCount;
narrativeMessage3 = "M109A2 Paladin"; // intentionally blank for testing narrativeMessage3 = "M109A6 Paladin"; // intentionally blank for testing
if (narrativeMessage4.isEmpty()) { if (narrativeMessage4.isEmpty()) {
narrativeMessage4 = "BMP2"; narrativeMessage4 = "BMP2";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment