|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.trinity.cs.gamecore.EditorSetup
public class EditorSetup
This is the implementation of GameSetup that is used by the screen editor.
Constructor Summary | |
---|---|
EditorSetup(Player pl)
|
Method Summary | |
---|---|
Player |
getLocalPlayer()
Returns the instance of your Player subclass that should be used in this game. |
javax.swing.JMenuBar |
getMenuBar()
This function returns a JMenuBar object that will be added to the main display window. |
PriorityQueue |
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. |
void |
setMainFrame(MainFrame 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 |
Constructor Detail |
---|
public EditorSetup(Player pl)
Method Detail |
---|
public void setMainFrame(MainFrame mf)
GameSetup
setMainFrame
in interface GameSetup
mf
- The MainFrame object the game is being played in.public Player getLocalPlayer()
GameSetup
getLocalPlayer
in interface GameSetup
public PriorityQueue getPriorityQueue()
GameSetup
getPriorityQueue
in interface GameSetup
public int getScrollingX()
GameSetup
getScrollingX
in interface GameSetup
public int getScrollingY()
GameSetup
getScrollingY
in interface GameSetup
public boolean useDrawOptimization()
GameSetup
useDrawOptimization
in interface GameSetup
public javax.swing.JMenuBar getMenuBar()
GameSetup
getMenuBar
in interface GameSetup
public void stopGame()
GameSetup
stopGame
in interface GameSetup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |