public class Homebase extends LocationObject
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.service.types.clock.IClockService |
clock
The clock.
|
protected long |
missiontime
The mission time.
|
protected int |
ore
The currently collected ore amount.
|
protected long |
starttime
The start time.
|
id, location
Constructor and Description |
---|
Homebase(Location loc,
long missiontime,
jadex.bridge.service.types.clock.IClockService clock)
Create a new homebase.
|
Modifier and Type | Method and Description |
---|---|
void |
deliverOre(int amount)
Retrieve some ore amount.
|
long |
getMissiontime()
Getter for missiontime.
|
long |
getMissionTime()
Get the mission time.
|
int |
getOre()
Get the amount of ore.
|
long |
getRemainingMissionTime()
Get the remaining mission time.
|
long |
getStarttime()
Getter for starttime
|
void |
setMissiontime(long missiontime)
Setter for missiontime.
|
void |
setOre(int ore)
Setter for ore.
|
void |
setStarttime(long starttime)
Setter for starttime.
|
java.lang.String |
toString()
Convert the Location to a string representation.
|
equals, getId, getLocation, hashCode, setId, setLocation
protected int ore
protected long missiontime
protected long starttime
protected jadex.bridge.service.types.clock.IClockService clock
public Homebase(Location loc, long missiontime, jadex.bridge.service.types.clock.IClockService clock)
public void deliverOre(int amount)
amount
- The amount.public int getOre()
public long getMissionTime()
public long getRemainingMissionTime()
public long getMissiontime()
public void setMissiontime(long missiontime)
missiontime
- The Homebase.java value to setpublic long getStarttime()
public void setStarttime(long starttime)
starttime
- The Homebase.java value to setpublic void setOre(int ore)
ore
- The Homebase.java value to setpublic java.lang.String toString()
toString
in class LocationObject