Skip to content
Snippets Groups Projects
Commit 446b91a2 authored by tjsus's avatar tjsus
Browse files

Assignment 3 code modified to add comment PDU to update player 1 and player 2 grids.

parent e95b7386
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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