vooga.gameEngine.item
Interface Renderable

All Superinterfaces:
java.lang.Comparable<Renderable>, Tangible
All Known Subinterfaces:
Collidable<T>, Scriptable
All Known Implementing Classes:
AIDemoItem, AIDemoText, Alien, Ball, Ball, Ball, Barrier, Barrier, Block, Bomb, BoundedItem, Box, CameraRectangle, Character, EnemyShip, Explosion, GameItem, ImageObstacle, InfoBar, Laser, LookButNoTouchCharacter, MenuScreen, Missle, MissleLauncher, Paddle, PaddleLeft, PaddleRight, PhysicalItem, PlacedText, Platform, PongItem, Powerup, Projectile, ReducePaddlePowerup, RobotUnicorn, Ship, StaticItem, TerrainPiece, TestGameItem, TestSquare, UFO, Weapon, Worm

public interface Renderable
extends java.lang.Comparable<Renderable>, Tangible

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.

Author:
Justin C. Klaassen

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

getTexture

Texture getTexture()
Getter method for the current 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.

Returns:
the Texture of the game item

isVisible

boolean isVisible()
Gives the visibility status of the GameItem.

Returns:
true if visible

setVisibility

void setVisibility(boolean visible)
Sets the visibility status of the GameItem.

Parameters:
visible - if true, if not false