java.lang.Object
org.metacosm.framework.world.Date
org.metacosm.zheroez.DateThera
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, java.io.Serializable
- public class DateThera
- extends org.metacosm.framework.world.Date
Date in the Thera World
TODO: internationalization
| Fields inherited from class org.metacosm.framework.world.Date |
|
dayName
private static final java.lang.String[] dayName
monthName
private static final java.lang.String[] monthName
dayPartsName
private static final java.lang.String[] dayPartsName
dayParts
private static final int[] dayParts
TICKS_BY_HOUR
private static final int TICKS_BY_HOUR
- See Also:
- Constant Field Values
HOURS_BY_DAY
private static final int HOURS_BY_DAY
- See Also:
- Constant Field Values
DAYS_BY_WEEK
private static final int DAYS_BY_WEEK
- See Also:
- Constant Field Values
DAYS_BY_MONTH
private static final int DAYS_BY_MONTH
- See Also:
- Constant Field Values
MONTHS_BY_YEAR
private static final int MONTHS_BY_YEAR
- See Also:
- Constant Field Values
TICKS_BY_DAY
private static final int TICKS_BY_DAY
- See Also:
- Constant Field Values
TICKS_BY_MONTH
private static final int TICKS_BY_MONTH
- See Also:
- Constant Field Values
TICKS_BY_YEAR
private static final int TICKS_BY_YEAR
- See Also:
- Constant Field Values
year
private int year
month
private int month
day
private int day
hour
private int hour
DateThera
public DateThera()
DateThera
public DateThera(long ticks)
updateFields
private void updateFields()
getHour
public final int getHour()
getDay
public final int getDay()
getMonth
public final int getMonth()
getYear
public final int getYear()
getPartOfDay
public final int getPartOfDay()
setTicks
public final void setTicks(long ticks)
- Description copied from class:
org.metacosm.framework.world.Date
- Sets this Date object to represent a point in time that is ticks
ticks after game clock started
toString
public final java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).