public interface CampaignClockAPI
| Modifier and Type | Method and Description |
|---|---|
float |
convertToDays(float realSeconds) |
float |
convertToMonths(float realSeconds) |
float |
convertToSeconds(float days) |
CampaignClockAPI |
createClock(long timestamp)
New clock based on the timestamp.
|
java.util.GregorianCalendar |
getCal()
Returns the game calender using the Java.util.GregorianCalendar
|
int |
getCycle()
Displays the current year cycle.
|
java.lang.String |
getCycleString()
Gets the cycle number in a string format
Example: Returns 206
|
java.lang.String |
getDateString()
Outputs the current date in a string format.
|
int |
getDay()
Get the day since game start.
|
float |
getElapsedDaysSince(long timestamp)
Gets the time elasped after the specified timestamp.
|
int |
getHour()
Gives the hour of the day.
|
int |
getMonth()
1 = January, 12 = December.
|
java.lang.String |
getMonthString()
Outputs the current in game month as a full string.
|
float |
getSecondsPerDay() |
java.lang.String |
getShortDate()
Gets the short date in the format of cYYY.MM.DD.
|
java.lang.String |
getShortMonthString()
Returns short hand string of the in game month.
|
long |
getTimestamp()
Gets the timestamp of the current date as a 14 digit, negative signed long number.
|
int getCycle()
int getMonth()
int getDay()
int getHour()
float convertToDays(float realSeconds)
float convertToMonths(float realSeconds)
long getTimestamp()
float getElapsedDaysSince(long timestamp)
java.lang.String getMonthString()
java.lang.String getShortMonthString()
float getSecondsPerDay()
CampaignClockAPI createClock(long timestamp)
timestamp - java.lang.String getDateString()
float convertToSeconds(float days)
java.lang.String getShortDate()
java.lang.String getCycleString()
java.util.GregorianCalendar getCal()