|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILevelObject
Interface for a (Level-) Object. It has a name as well as a position. It must implement the render method which may draw this object to the screen as well as the update method which handles user input.
Method Summary | |
---|---|
java.lang.String |
getName()
returns the name of this object. |
org.newdawn.slick.geom.Vector2f |
getPosition()
returns the position of this object. |
void |
render(org.newdawn.slick.Graphics graphics)
renders this object to the screen. |
void |
setPosition(org.newdawn.slick.geom.Vector2f position)
sets the position of this object. |
void |
update(org.newdawn.slick.GameContainer gc,
org.newdawn.slick.state.StateBasedGame sbg,
int delta)
applies user input to the object. |
Method Detail |
---|
java.lang.String getName()
void setPosition(org.newdawn.slick.geom.Vector2f position)
position
- org.newdawn.slick.geom.Vector2f getPosition()
void render(org.newdawn.slick.Graphics graphics)
graphics
- void update(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg, int delta)
gc
- sbg
- delta
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |