|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
energyTycoon.game.Game
public abstract class Game
Game abstract class
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
MESS_ALERT
|
static int |
MESS_INFO
|
static int |
MESS_PERSO
|
static int |
MESS_SUCCESS
|
static int |
nbDay
|
static int |
nbHour
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
abstract void |
compute()
compute a frame |
City |
getCity(int cityId)
return the city of the given id |
int |
getDay()
|
int |
getGameId()
|
java.lang.String |
getGameName()
|
double |
getHour()
return moment of the day (0.5 for 12h00, 0.25 for 06h00 ... ans so one) |
int |
getNbFramePerMonth()
return frame number in a month |
int |
getNbFramePerYear()
return frame number in a year |
int |
getNbMaxPlayer()
|
int |
getNbPlayer()
|
int |
getScriptId()
|
Season |
getSeason()
|
java.lang.String |
getStringDate(int time)
get the string date from game timer |
int |
getTime()
|
int |
getWeather()
|
int |
getWind()
|
int |
getYearTime()
get timer in the year |
boolean |
isNight()
return true if it's the night |
abstract void |
run()
run the thread |
void |
setStartDate(int day,
Season season)
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int nbHour
public static final int nbDay
public static final int MESS_PERSO
public static final int MESS_ALERT
public static final int MESS_INFO
public static final int MESS_SUCCESS
Method Detail |
---|
public int getTime()
public int getWeather()
public int getWind()
public Season getSeason()
public int getDay()
public java.lang.String getGameName()
public int getGameId()
public int getScriptId()
public int getNbPlayer()
public int getNbMaxPlayer()
public abstract void compute()
public abstract void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public boolean isNight()
public double getHour()
public java.lang.String getStringDate(int time)
time
-
public int getNbFramePerYear()
public int getNbFramePerMonth()
public void setStartDate(int day, Season season)
day
- season
- public City getCity(int cityId)
cityId
-
public int getYearTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |