forked from RLBot/RLBotJavaExample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoostPad.java
More file actions
38 lines (29 loc) · 821 Bytes
/
BoostPad.java
File metadata and controls
38 lines (29 loc) · 821 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
package rlbotexample.boost;
import rlbotexample.vector.Vector3;
/**
* Representation of one of the boost pads on the field.
*
* This class is here for your convenience, it is NOT part of the framework. You can change it as much
* as you want, or delete it.
*/
public class BoostPad {
private final Vector3 location;
private final boolean isFullBoost;
private boolean isActive;
public BoostPad(Vector3 location, boolean isFullBoost) {
this.location = location;
this.isFullBoost = isFullBoost;
}
public void setActive(boolean active) {
isActive = active;
}
public Vector3 getLocation() {
return location;
}
public boolean isFullBoost() {
return isFullBoost;
}
public boolean isActive() {
return isActive;
}
}