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

javadoc

parent 13a9fc82
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,8 @@ public class DisDemonstration { ...@@ -117,7 +117,8 @@ public class DisDemonstration {
} }
} }
/** Get list of network addresses for broadcast packets
* @return list of network addresses */
public static List<InetAddress> getBroadcastAddresses() public static List<InetAddress> getBroadcastAddresses()
{ {
List<InetAddress> broadcastAddresses = new ArrayList<>(); List<InetAddress> broadcastAddresses = new ArrayList<>();
......
...@@ -14,13 +14,17 @@ public abstract class EntityMover ...@@ -14,13 +14,17 @@ public abstract class EntityMover
{ {
Vector3Double position; Vector3Double position;
/** Superclass constructor
* @param startPosition initial coordinate point */
public EntityMover(Vector3Double startPosition) public EntityMover(Vector3Double startPosition)
{ {
this.position = startPosition; this.position = startPosition;
} }
/** single-step movement */
public abstract void step(); public abstract void step();
/** provide current location
* @return current location */
public Vector3Double getPosition() public Vector3Double getPosition()
{ {
return position; return position;
......
...@@ -15,10 +15,21 @@ public class EntityMoverSquare extends EntityMover ...@@ -15,10 +15,21 @@ public class EntityMoverSquare extends EntityMover
/** How big the square we move around is */ /** How big the square we move around is */
private static final int SQUARE_SIZE = 50; // size of a side to the square, in meters private static final int SQUARE_SIZE = 50; // size of a side to the square, in meters
/** Directions we can travel. */ /** Directions we can travel. */
public enum Direction{NORTH, EAST, SOUTH, WEST}; public enum Direction{
/** value choice */
NORTH,
/** value choice */
EAST,
/** value choice */
SOUTH,
/** value choice */
WEST};
/** direction of movement */
public Direction currentDirection; public Direction currentDirection;
/** instance constructor
* @param position initial coordinate */
public EntityMoverSquare(Vector3Double position) public EntityMoverSquare(Vector3Double position)
{ {
super(position); super(position);
......
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