|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hermes.Hermes
public class Hermes
Library class for broad scale static helpers, storage of PApplet
Constructor Summary | |
---|---|
Hermes()
|
Method Summary | |
---|---|
static PApplet |
getPApplet()
Returns the PApplet that Hermes is running in. |
static float |
getTimeScale()
Returns the Hermes time scale. |
static void |
setPApplet(PApplet parentApplet)
Set the PApplet that all utilities use. |
static void |
setTimeScale(float scale)
Sets the time scale for calculating motion and physics. |
static void |
unsafeSleep(long time)
Causes the calling thread to sleep, catches InterruptedException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hermes()
Method Detail |
---|
public static void setTimeScale(float scale)
scale
- public static float getTimeScale()
public static PApplet getPApplet()
PApplet
that Hermes is running in.
public static void setPApplet(PApplet parentApplet)
Hermes.setPApplet(this)
before doing anything else!
public static void unsafeSleep(long time)
time
- the time (in milliseconds) to sleep
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |