-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnemyRobot.java
More file actions
49 lines (38 loc) · 794 Bytes
/
Copy pathEnemyRobot.java
File metadata and controls
49 lines (38 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package aquila;
public class EnemyRobot {
private double heading;
private double energy;
private double velocity;
private boolean alive;
private double distance;
EnemyRobot() {
this.alive = true;
}
public void setDead() {
this.alive = false;
}
public void setHeading(double heading) {
this.heading = heading;
}
public void setEnergy(double energy) {
this.energy = energy;
}
public void setVelocity(double velocity) {
this.velocity = velocity;
}
public void setDistance(double distance) {
this.distance = distance;
}
public double getHeading() {
return this.heading;
}
public double getEnergy() {
return this.energy;
}
public double getVelocity() {
return this.velocity;
}
public double getDistance() {
return this.distance;
}
}