|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Renderable
Represents a game item that can be displayed on screen in a game. In order
for an game item to be rendered they must have a Position
and a
Texture
that represents the object. The object's visibility is
determined by the GamePanel
based on its position in the game.
Method Summary | |
---|---|
Texture |
getTexture()
Getter method for the current Texture of this item. |
boolean |
isVisible()
Gives the visibility status of the GameItem . |
void |
setVisibility(boolean visible)
Sets the visibility status of the GameItem . |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface vooga.gameEngine.item.Tangible |
---|
getPosition, getRotation, getShape, getSize, move, resize, rotate, setPosition, setRotation, setSize |
Method Detail |
---|
Texture getTexture()
Texture
of this item. The
texture represents how the GameItem
is displayed on the
screen. The dimensions of the Texture
should be relative to
the coordinate system used in the game.
boolean isVisible()
GameItem
.
void setVisibility(boolean visible)
GameItem
.
visible
- if true, if not false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |