|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmhframework.MHGame
public final class MHGame
This class drives the entire game process.
Field Summary | |
---|---|
static long |
framesPerSecond
|
Constructor Summary | |
---|---|
MHGame(MHScreenManager s)
Constructor. |
Method Summary | |
---|---|
static MHScreenManager |
getScreenManager()
|
static boolean |
isProgramOver()
|
void |
keyPressed(java.awt.event.KeyEvent e)
Sends Key Pressed events to the screen manager. |
void |
keyReleased(java.awt.event.KeyEvent e)
Sends Key Released events to the screen manager. |
void |
keyTyped(java.awt.event.KeyEvent e)
Sends Key Typed events to the screen manager. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Sends Mouse Clicked events to the screen manager. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Sends Mouse Moved events to the screen manager. |
void |
mousePressed(java.awt.event.MouseEvent e)
Sends Mouse Pressed events to the screen manager. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Sends Mouse Released events to the screen manager. |
void |
run()
Executes the game loop. |
static void |
setProgramOver(boolean isOver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static long framesPerSecond
Constructor Detail |
---|
public MHGame(MHScreenManager s)
Method Detail |
---|
public final void run()
public void keyTyped(java.awt.event.KeyEvent e)
e
- The event which triggered a call to this method.public void keyPressed(java.awt.event.KeyEvent e)
e
- The event which triggered a call to this method.public void keyReleased(java.awt.event.KeyEvent e)
e
- The event which triggered a call to this method.public void mousePressed(java.awt.event.MouseEvent e)
e
- The event which triggered a call to this method.public void mouseMoved(java.awt.event.MouseEvent e)
e
- The event which triggered a call to this method.public void mouseReleased(java.awt.event.MouseEvent e)
e
- The event which triggered a call to this method.public void mouseClicked(java.awt.event.MouseEvent e)
e
- The event which triggered a call to this method.public static MHScreenManager getScreenManager()
public static boolean isProgramOver()
public static void setProgramOver(boolean isOver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |