Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • stefan.goericke.gy/NetworkedGraphicsMV3500
  • william.mahan/NetworkedGraphicsMV3500
  • alexander.white/NetworkedGraphicsMV3500
  • kyle.britt/NetworkedGraphicsMV3500
  • christopher.garibay/NetworkedGraphicsMV3500
  • christopher.cannon/NetworkedGraphicsMV3500
  • galoeffe/NetworkedGraphicsMV3500
  • dlcain1/NetworkedGraphicsMV3500
  • jmfurr/NetworkedGraphicsMV3500
  • jrjackso1/NetworkedGraphicsMV3500
  • kjmaroon1/NetworkedGraphicsMV3500
  • cdtacket/NetworkedGraphicsMV3500
12 results
Show changes
Commits on Source (4)
......@@ -74,8 +74,8 @@ javac.modulepath=
javac.processormodulepath=
javac.processorpath=\
${javac.classpath}
javac.source=22
javac.target=22
javac.source=23
javac.target=23
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
......
......@@ -10,8 +10,9 @@
*/
package MV3500Cohort2021JulySeptember.projects.Fisher;
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.afg.lifeform.land.CivilianAdultMalewCellPhone;
//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.enumerations.*; // match any
import edu.nps.moves.dis7.pdus.*; // match any of the PDU classes, easier than listing individually
......@@ -80,7 +81,7 @@ public class MV3500ProjectFisher
entityStatePdu_1.setEntityID(entityID_1);
entityStatePdu_1.getEntityLocation().setX(0).setY(0).setZ(0);
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
// EntityType entityType_2 = new EntityType();
......@@ -91,11 +92,12 @@ public class MV3500ProjectFisher
// 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_2.setEntityID(2);
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.getEntityLocation().setX(10).setY(0).setZ(100);
entityStatePdu_2.setForceId(ForceID.OPPOSING);
......
......@@ -8,9 +8,9 @@ import java.util.Scanner;
import java.io.PrintWriter;
/**
* This client program establishes a socket connection to the {@link GameHandler.java},
* This client program establishes a socket connection to the GameHandler,
* then plays a random number guessing game.
* No fancy footwork here, it is pretty simple and similar to {@link TcpExample3Client}.
* No fancy footwork here, it is pretty simple and similar to TcpExample3Client.
*
* see TcpExample4DispatchServer
* see TcpExample4HandlerThread
......
......@@ -16,7 +16,7 @@ import java.util.logging.Logger;
* home network) even if one or both machines are connected via a
* <a href="https://en.wikipedia.org/wiki/Virtual_private_network" target="_blank">Virtual Private Network (VPN)</a>.
*
* Privacy note: this sender advertises your user name as part of the multicast packet message
* Privacy warning: this sender advertises your user name as part of the multicast packet message
*
* @author mcgredo
* @author brutzman@nps.edu
......@@ -90,6 +90,7 @@ public class MulticastUdpChatKeyboardSender
byte[] buffer = baos.toByteArray();
DatagramPacket packet = new DatagramPacket(buffer, buffer.length, group/*, DESTINATION_PORT*/);
// Security warning: this application reveals your user name
String userName = System.getProperty("user.name");
String newMessage = new String(); // from user via keyboard
......