Package com.fs.starfarer.api.campaign
Interface CampaignClockAPI
public interface CampaignClockAPI
- Author:
- Alex Mosolov Copyright 2012 Fractal Softworks, LLC
-
Method Summary
Modifier and TypeMethodDescriptionfloat
convertToDays
(float realSeconds) float
convertToMonths
(float realSeconds) float
convertToSeconds
(float days) createClock
(long timestamp) New clock based on the timestamp.getCal()
int
getCycle()
int
getDay()
float
getElapsedDaysSince
(long timestamp) int
getHour()
int
getMonth()
1 = January, 12 = December.float
long
-
Method Details
-
getCycle
int getCycle() -
getMonth
int getMonth()1 = January, 12 = December.- Returns:
-
getDay
int getDay() -
getHour
int getHour() -
convertToDays
float convertToDays(float realSeconds) -
convertToMonths
float convertToMonths(float realSeconds) -
getTimestamp
long getTimestamp() -
getElapsedDaysSince
float getElapsedDaysSince(long timestamp) -
getMonthString
String getMonthString() -
getShortMonthString
String getShortMonthString() -
getSecondsPerDay
float getSecondsPerDay() -
createClock
New clock based on the timestamp.- Parameters:
timestamp
-- Returns:
-
getDateString
String getDateString() -
convertToSeconds
float convertToSeconds(float days) -
getShortDate
String getShortDate() -
getCycleString
String getCycleString() -
getCal
GregorianCalendar getCal()
-