Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
62a57306
Commit
62a57306
authored
7 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
Refactor/rename to have student name first
parent
9973cb10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/Assignments/homework1/AngelClient.java
+1
-1
1 addition, 1 deletion
projects/Assignments/homework1/AngelClient.java
projects/Assignments/homework1/AngelTank.java
+2
-2
2 additions, 2 deletions
projects/Assignments/homework1/AngelTank.java
with
3 additions
and
3 deletions
projects/Assignments/homework1/AngelClient.java
+
1
−
1
View file @
62a57306
...
@@ -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
});
Angel
Tank
tank
=
new
Angel
Tank
(
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
)){
...
...
This diff is collapsed.
Click to expand it.
projects/Assignments/homework1/Tank.java
→
projects/Assignments/homework1/
Angel
Tank.java
+
2
−
2
View file @
62a57306
...
@@ -9,13 +9,13 @@
...
@@ -9,13 +9,13 @@
*
*
* @author cs2017
* @author cs2017
*/
*/
public
class
Tank
{
public
class
Angel
Tank
{
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
)
{
Angel
Tank
(
String
type
,
int
i
,
int
[]
pos
)
{
this
.
type
=
type
;
this
.
type
=
type
;
this
.
speed
=
i
;
this
.
speed
=
i
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment