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

Refactor/rename to have student name first

parent 9973cb10
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ public class AngelClient { ...@@ -52,7 +52,7 @@ public class AngelClient {
int y = Integer.parseInt(br.readLine()); int y = Integer.parseInt(br.readLine());
int z = Integer.parseInt(br.readLine()); int z = Integer.parseInt(br.readLine());
String lastCommand = br.readLine(); String lastCommand = br.readLine();
Tank tank = new Tank(serverMessage, spd, new int[]{x, y, z}); AngelTank tank = new AngelTank(serverMessage, spd, new int[]{x, y, z});
System.out.println(serverMessage+" is traveling at "+spd+" with position ("+x+", "+y+", "+z+")."); System.out.println(serverMessage+" is traveling at "+spd+" with position ("+x+", "+y+", "+z+").");
if ("Exit".equals(lastCommand)){ if ("Exit".equals(lastCommand)){
......
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
* *
* @author cs2017 * @author cs2017
*/ */
public class Tank { public class AngelTank {
private String type; private String type;
private int speed; private int speed;
private int[] position; private int[] position;
Tank(String type, int i, int[] pos) { AngelTank(String type, int i, int[] pos) {
this.type = type; this.type = type;
this.speed = i; this.speed = i;
......
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