|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.gameEngine.game.GameRelatedObject
vooga.gameEngine.item.GameItem
vooga.gameEngine.item.StaticItem
vooga.gameEngine.item.MenuScreen
public class MenuScreen
Class MenuScreen
represents a StaticItem
that will
always take up the entire viewable space.
Constructor Summary | |
---|---|
MenuScreen(Tangible b,
java.awt.Color c,
int index)
Constructor for creating a new MenuScreen representing a
solid color that is guaranteed to always cover the entire screen. |
|
MenuScreen(Tangible b,
java.net.URL imageFile,
int index)
Constructor for creating a new MenuScreen from an
URL that is pointing to a desired image. |
Method Summary |
---|
Methods inherited from class vooga.gameEngine.item.StaticItem |
---|
positionChanged, rotationChanged, sizeChanged |
Methods inherited from class vooga.gameEngine.item.GameItem |
---|
compareTo, getPosition, getRotation, getShape, getSize, getTexture, isVisible, move, resize, rotate, setPosition, setRotation, setSize, setVisibility |
Methods inherited from class vooga.gameEngine.game.GameRelatedObject |
---|
addEventListener, clearListeners, equals, fire, fire, fire, getEventListeners, getID, getListenerCount, removeEventListener |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuScreen(Tangible b, java.awt.Color c, int index)
MenuScreen
representing a
solid color that is guaranteed to always cover the entire screen. A
MenuScreen
is initially set to not be visible.
cc
- is the cameraimageFile
- points to the image to be used to represent this itemindex
- is the layer that this item should be rendered on, with items
with lower indexes being rendered on toppublic MenuScreen(Tangible b, java.net.URL imageFile, int index)
MenuScreen
from an
URL
that is pointing to a desired image. It is up to the user to
ensure the image is the correct aspect ratio as the picture will
automatically be resized to fill the entire screen no matter how the [@link
CameraController} changes. A MenuScreen
is initially set to
not be visible.
cc
- is the cameraimageFile
- points to the image to be used to represent this itemindex
- is the layer that this item should be rendered on, with items
with lower indexes being rendered on top
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |