diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java index 502d7ccbcf799441c88030561412d22f4e547248..e40377628f28a508d1a1d2f8ab183760846f1367 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java @@ -213,10 +213,10 @@ public class ExampleSimulationProgram { fireLoc.setY(y); fireLoc.setZ(0.0); firePdu.setLocationInWorldCoordinates(fireLoc); - firePdu.setDescriptor(munitionDescriptor1); - firePdu.setRange(100.0f); + firePdu.setDescriptor(munitionDescriptor1); // Not needed I guess + firePdu.setRange(100.0f);// Not needed I gueess - // Log the firing action + // Print the firing action System.out.println(player + " fires at (" + x + ", " + y + ")."); // Determine hit or miss and update the game grid @@ -232,7 +232,7 @@ public class ExampleSimulationProgram { System.out.println(player + " fires at (" + x + ", " + y + ") but it's already hit/missed."); } - // Send the enriched FirePdu to reflect the shot + // Send the FirePdu to represent the shot disChannel.sendSinglePdu(simulationTimeSeconds, firePdu); // Send the updated grid status of both players