vooga.examples.level
Class Level

java.lang.Object
  extended by vooga.examples.level.Level
Direct Known Subclasses:
ScrollerLevel

public class Level
extends java.lang.Object


Constructor Summary
Level(java.util.Scanner fileToBeRead)
           
 
Method Summary
 CollisionManager getCollisionManager()
           
 EventManager getEvents()
           
 GameState getLevelState()
           
 Resources getResources()
           
 java.util.Collection<BetterSprite> getSpritesList()
           
 void loadSprites(java.util.Scanner fileToBeRead)
          Initializes all the Sprites for a particular level.
 void setCollision()
          Initialize the collision manager
 void setCollision(CollisionManager cm)
          Initialize the collision manager to cm;
 void setEvents()
          Initialize the event manager
 void setEvents(EventManager em)
          Initialize the Event Manager to em
 void setGameState()
          Initialize the gameState objects
 void setGameState(GameState gs)
          Initialize the Game State to gs
 void setResources()
          Initialize the resources for the game
 void setResources(Resources rh)
          Initialize the Resource Handler to rh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Level

public Level(java.util.Scanner fileToBeRead)
Method Detail

loadSprites

public void loadSprites(java.util.Scanner fileToBeRead)
Initializes all the Sprites for a particular level. The scanner passed in should be initialized with the text file for that level.

Parameters:
Scanner - which scans from the level initialization file.

getSpritesList

public java.util.Collection<BetterSprite> getSpritesList()
Returns:
A Collection of Sprites to be used by the Game.

getLevelState

public GameState getLevelState()
Returns:
the game State of the level

getEvents

public EventManager getEvents()
Returns:
the event manager of the level

getCollisionManager

public CollisionManager getCollisionManager()
Returns:
the Collision Manager of the level

getResources

public Resources getResources()
Returns:
the resource handler of the level

setCollision

public void setCollision()
Initialize the collision manager


setCollision

public void setCollision(CollisionManager cm)
Initialize the collision manager to cm;

Parameters:
cm -

setGameState

public void setGameState()
Initialize the gameState objects


setGameState

public void setGameState(GameState gs)
Initialize the Game State to gs

Parameters:
gs -

setEvents

public void setEvents()
Initialize the event manager


setEvents

public void setEvents(EventManager em)
Initialize the Event Manager to em

Parameters:
em -

setResources

public void setResources()
Initialize the resources for the game


setResources

public void setResources(Resources rh)
Initialize the Resource Handler to rh

Parameters:
rh -