apes
Interface ILevelObject

All Known Implementing Classes:
Ape, Banana, CollidableImageObject, ImageObject

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

getName

java.lang.String getName()
returns the name of this object.

Returns:

setPosition

void setPosition(org.newdawn.slick.geom.Vector2f position)
sets the position of this object.

Parameters:
position -

getPosition

org.newdawn.slick.geom.Vector2f getPosition()
returns the position of this object.

Returns:

render

void render(org.newdawn.slick.Graphics graphics)
renders this object to the screen.

Parameters:
graphics -

update

void update(org.newdawn.slick.GameContainer gc,
            org.newdawn.slick.state.StateBasedGame sbg,
            int delta)
applies user input to the object.

Parameters:
gc -
sbg -
delta -