|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcursor.CursorManager
public class CursorManager
This class represents a cursor manager that provides the different cursors for the game.
| Method Summary | |
|---|---|
static void |
addCursor(GameCursor cursor)
Adds a new game cursor to the cursor pool with the specified parameters |
static GameCursor |
getCurrentCursor()
Returns the current game cursor |
static GameCursor |
getCursor(java.lang.String constant)
Returns the cursor refering to the specified String constant |
static void |
render(java.awt.Graphics2D g,
com.golden.gamedev.engine.BaseInput bsInput)
Renders the current game cursor sprite |
static void |
setCursor(java.lang.String constant)
Sets the mouse pointer to the specified cursor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addCursor(GameCursor cursor)
cursor - game cursor to add to the cursor poolpublic static GameCursor getCursor(java.lang.String constant)
constant - use a constant from the Cursors class --> Cursors.TALK
public static void setCursor(java.lang.String constant)
constant - constant refering to the cursorpublic static GameCursor getCurrentCursor()
public static void render(java.awt.Graphics2D g,
com.golden.gamedev.engine.BaseInput bsInput)
g - bsInput -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||