|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.examples.level.Level
vooga.examples.level.ScrollerLevel
public class ScrollerLevel
Constructor Summary | |
---|---|
ScrollerLevel(java.util.Scanner fileToBeRead,
java.awt.Dimension screenSize,
java.awt.Dimension gameSpace)
|
Method Summary | |
---|---|
static java.util.Collection<Sprite> |
getCurrentScreenSprites(java.util.Collection<Sprite> allSprites,
double heroX,
double heroY)
This method will be called in the update method of the main game class. |
Methods inherited from class vooga.examples.level.Level |
---|
getCollisionManager, getEvents, getLevelState, getResources, getSpritesList, loadSprites, setCollision, setCollision, setEvents, setEvents, setGameState, setGameState, setResources, setResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScrollerLevel(java.util.Scanner fileToBeRead, java.awt.Dimension screenSize, java.awt.Dimension gameSpace)
fileToBeRead
- - level file that contains Sprites' detailsscreenSize
- - Dimension of the ScreengameSpace
- - Dimension of the gameSpaceMethod Detail |
---|
public static java.util.Collection<Sprite> getCurrentScreenSprites(java.util.Collection<Sprite> allSprites, double heroX, double heroY)
allSprites
- - Collection of all the sprites for the current levelheroX
- - X coordinate of the hero,heroY
- - Y coordinate of the hero
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |