|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
com.WorldLibAndroid.World
public class World
World for programming interactive games - with graphics, key events, mouse events and a timer. Designed to implement the same interface as DrScheme/ProfessorJ world teachpack library.
Constructor Summary | |
---|---|
World()
|
Method Summary | |
---|---|
void |
bigBang(int width,
int height,
long mili,
long interval)
Start the world by creating a canvas of the given size, creating and adding the key and mouse adapters, and starting the timer at the given speed. |
ContextThemeWrapper |
context()
Access to the application's environment. |
void |
endOfWorld()
End the world interactions - leave the canvas open, write the end of world message onto the canvas |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public World()
Method Detail |
---|
public void bigBang(int width, int height, long mili, long interval)
bigBang
in interface IInit
width
- the Canvas of the CanvasPanel
height
- the Canvas of the CanvasPanel
mili
- The number of millis in the future from the call to start() until the countdown is done and onFinish() is called.interval
- the The interval along the way to receive onTick(long) callbacks.public void endOfWorld()
endOfWorld
in interface IInit
public ContextThemeWrapper context()
IInit
context
in interface IInit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |