From 446b91a2610b2dec36635d7b1295eff40416e3ad Mon Sep 17 00:00:00 2001 From: tjsus <tjsus@172.20.148.137> Date: Thu, 29 Aug 2024 11:49:33 -0700 Subject: [PATCH] Assignment 3 code modified to add comment PDU to update player 1 and player 2 grids. --- .../homework3/Smith/ExampleSimulationProgram.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java index e40377628f..26419da18e 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java @@ -208,7 +208,7 @@ public class ExampleSimulationProgram { // Set relevant details in the FirePdu firePdu.setFiringEntityID(new EntityID().setEntityID(player.equals("Player 1") ? 1 : 2)); firePdu.setTargetEntityID(new EntityID().setEntityID(player.equals("Player 1") ? 1 : 2)); - Vector3Double fireLoc = new Vector3Double(); + Vector3Double fireLoc = new Vector3Double(); //annoying that there isn't a Vector3Double(x, y, z) constructor... fireLoc.setX(x); fireLoc.setY(y); fireLoc.setZ(0.0); -- GitLab