Skip to content
Snippets Groups Projects
Commit 971107e8 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

replace/hide obsolete enumeration classes

parent 983c41b4
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
*/ */
package MV3500Cohort2021JulySeptember.projects.Fisher; package MV3500Cohort2021JulySeptember.projects.Fisher;
import edu.nps.moves.dis7.entities.afg.lifeform.land.CivilianAdultMalewCellPhone; //import edu.nps.moves.dis7.entities.afg.lifeform.land.CivilianAdultMalewCellPhone;
import edu.nps.moves.dis7.entities.usa.lifeform.land.*; //import edu.nps.moves.dis7.entities.usa.lifeform.land.*;
import edu.nps.moves.dis7.entities.afg.platform.land.PoliceCar;
import edu.nps.moves.dis7.entities.usa.platform.land.M1281CloseCombatWeaponsCarrierJLTVCCWC; import edu.nps.moves.dis7.entities.usa.platform.land.M1281CloseCombatWeaponsCarrierJLTVCCWC;
import edu.nps.moves.dis7.enumerations.*; // match any import edu.nps.moves.dis7.enumerations.*; // match any
import edu.nps.moves.dis7.pdus.*; // match any of the PDU classes, easier than listing individually import edu.nps.moves.dis7.pdus.*; // match any of the PDU classes, easier than listing individually
...@@ -80,7 +81,7 @@ public class MV3500ProjectFisher ...@@ -80,7 +81,7 @@ public class MV3500ProjectFisher
entityStatePdu_1.setEntityID(entityID_1); entityStatePdu_1.setEntityID(entityID_1);
entityStatePdu_1.getEntityLocation().setX(0).setY(0).setZ(0); entityStatePdu_1.getEntityLocation().setX(0).setY(0).setZ(0);
entityStatePdu_1.setForceId(ForceID.FRIENDLY); entityStatePdu_1.setForceId(ForceID.FRIENDLY);
entityStatePdu_1.setAlternativeEntityType(new _762x51mmM240E4M240BGPMG() ); // entityStatePdu_1.setAlternativeEntityType(new _762x51mmM240E4M240BGPMG() ); // obsolete
// Again, example of the not so good way to do things // Again, example of the not so good way to do things
// EntityType entityType_2 = new EntityType(); // EntityType entityType_2 = new EntityType();
...@@ -91,11 +92,12 @@ public class MV3500ProjectFisher ...@@ -91,11 +92,12 @@ public class MV3500ProjectFisher
// entityType_2.setSubCategory(1); // cell phone // entityType_2.setSubCategory(1); // cell phone
// Entity 2 is an enemy Afghan male with cell phone. // Entity 2 is an enemy Afghan male with cell phone.,, now obsolete, use PoliceCar instead
EntityID entityID_2 = new EntityID(); EntityID entityID_2 = new EntityID();
entityID_2.setEntityID(2); entityID_2.setEntityID(2);
EntityStatePdu entityStatePdu_2 = pduFactory.makeEntityStatePdu(); EntityStatePdu entityStatePdu_2 = pduFactory.makeEntityStatePdu();
entityStatePdu_2.setEntityType(new CivilianAdultMalewCellPhone()); // entityStatePdu_2.setEntityType(new CivilianAdultMalewCellPhone());
entityStatePdu_2.setEntityType(new PoliceCar());
entityStatePdu_2.setEntityID(entityID_2); entityStatePdu_2.setEntityID(entityID_2);
entityStatePdu_2.getEntityLocation().setX(10).setY(0).setZ(100); entityStatePdu_2.getEntityLocation().setX(10).setY(0).setZ(100);
entityStatePdu_2.setForceId(ForceID.OPPOSING); entityStatePdu_2.setForceId(ForceID.OPPOSING);
......
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