public class Body extends GameObject
Modifier and Type | Field and Description |
---|---|
int |
amount
The amount of material the object has, or energy if it is a planet.
|
java.lang.String |
bodyType
The type of celestial body it is.
|
java.lang.String |
materialType
The type of material the celestial body has.
|
Player |
owner
The Player that owns and can control this Body.
|
double |
radius
The radius of the circle that this body takes up.
|
double |
x
The x value this celestial body is on.
|
double |
y
The y value this celestial body is on.
|
logs
Modifier and Type | Method and Description |
---|---|
int |
nextX(int num)
The x value of this body a number of turns from now.
|
int |
nextY(int num)
The x value of this body a number of turns from now.
|
boolean |
spawn(double x,
double y,
java.lang.String title)
Spawn a unit on some value of this celestial body.
|
log
public int amount
public java.lang.String bodyType
public java.lang.String materialType
public Player owner
public double radius
public double x
public double y
public int nextX(int num)
num
- The number of turns in the future you wish to check.public int nextY(int num)
num
- The number of turns in the future you wish to check.public boolean spawn(double x, double y, java.lang.String title)
x
- The x value of the spawned unit.y
- The y value of the spawned unit.title
- The job title of the unit being spawned.© 2020 MST ACM SIG-GAME