|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.trinity.cs.gamecore.madison.MadisonGameSetup
public class MadisonGameSetup
Method Summary | |
---|---|
MadisonPlayer |
getLocalPlayer()
Returns the instance of your Player subclass that should be used in this game. |
MainFrame<MadisonBlock,MadisonEntity> |
getMainFrame()
|
javax.swing.JMenuBar |
getMenuBar()
This function returns a JMenuBar object that will be added to the main display window. |
PriorityQueue<MadisonBlock,MadisonEntity> |
getPriorityQueue()
Return the priority queue that you are using for the game. |
int |
getScrollingX()
Tells the display class is this game has a scrolling background in the x direction. |
int |
getScrollingY()
Tells the display class is this game has a scrolling background in the y direction. |
static MadisonGameSetup |
instance()
This method returns the singleton of the BasicGameSetup class. |
void |
setMainFrame(MainFrame<MadisonBlock,MadisonEntity> mf)
This method is called in the constructor of a main frame so that the GameSetup class will be able to communicate with the frame that the game is being played in. |
void |
stopGame()
This function will automatically be called when the player begins to return something other than GAME_RUNNING. |
boolean |
useDrawOptimization()
If this returns true, the drawing routine will use an optimization of drawing the images for all the blocks once to a large image and just putting up that image as long as the player hasn't changed screens. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MadisonGameSetup instance()
public void setMainFrame(MainFrame<MadisonBlock,MadisonEntity> mf)
setMainFrame
in interface GameSetup<MadisonBlock,MadisonEntity>
mf
- The MainFrame object the game is being played in.public MainFrame<MadisonBlock,MadisonEntity> getMainFrame()
public MadisonPlayer getLocalPlayer()
getLocalPlayer
in interface GameSetup<MadisonBlock,MadisonEntity>
public PriorityQueue<MadisonBlock,MadisonEntity> getPriorityQueue()
getPriorityQueue
in interface GameSetup<MadisonBlock,MadisonEntity>
public int getScrollingX()
getScrollingX
in interface GameSetup<MadisonBlock,MadisonEntity>
public int getScrollingY()
getScrollingY
in interface GameSetup<MadisonBlock,MadisonEntity>
public boolean useDrawOptimization()
useDrawOptimization
in interface GameSetup<MadisonBlock,MadisonEntity>
public javax.swing.JMenuBar getMenuBar()
getMenuBar
in interface GameSetup<MadisonBlock,MadisonEntity>
public void stopGame()
stopGame
in interface GameSetup<MadisonBlock,MadisonEntity>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |