diff --git a/examples/src/OpenDis7Examples/ExampleSimulationProgram.java b/examples/src/OpenDis7Examples/ExampleSimulationProgram.java index 3ff2409f5b86ff301d08ebff87025a4a8b5e73fa..cef5eb891d077c7183881000dfdd6a35dae070a1 100644 --- a/examples/src/OpenDis7Examples/ExampleSimulationProgram.java +++ b/examples/src/OpenDis7Examples/ExampleSimulationProgram.java @@ -53,6 +53,9 @@ public class ExampleSimulationProgram protected EntityID entityID_1 = new EntityID(); /** EntityID settings for entity 2 */ protected EntityID entityID_2 = new EntityID(); + /** EntityID settings for entity 3, a potential third-party observer and after-action reporter */ + protected EntityID entityID_3 = new EntityID(); + /** ESPDU for entity 1 */ protected EntityStatePdu entityStatePdu_1; /** ESPDU for entity 2 */ @@ -161,9 +164,9 @@ public class ExampleSimulationProgram munitionDescriptor1 = new MunitionDescriptor(); // can a third party report their independent (non-entity) status of a detonation? yes... + // if this is a third-party report, then that third party will need an independent EntityID detonationPdu_1a = pduFactory.makeDetonationPdu(); - // if this is a third-party report, then that third party will need an EntityID - detonationPdu_1a.setSourceEntityID(entityID_1); + detonationPdu_1a.setSourceEntityID(entityID_3); // Your model setup: define participants. who's who in this zoo? // Assuming you keep track of entity objects... here is some support for for Entity 1.