vooga.games.mariogame
Class MarioLevelFactory

java.lang.Object
  extended by vooga.games.mariogame.MarioLevelFactory
All Implemented Interfaces:
LevelFactory

public class MarioLevelFactory
extends java.lang.Object
implements LevelFactory


Constructor Summary
MarioLevelFactory()
           
MarioLevelFactory(MarioSprite mario)
           
 
Method Summary
 PlayField getPlayfield(java.io.File levelFactoryFile)
          Generates a MarioPlayField from a configuration file with the following template: In general: *variable*=*value* map=*location of level's map file* (only first is read) enemy=*enemy x*, *enemy y* mario=*mario x*,*mario y* (only first is read) overlay=*location of overlay XML file* music=*key for sound file* bg=[color/image]:[R,G,B/*key for image*]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface vooga.engine.factory.LevelFactory
getPlayfield
 

Constructor Detail

MarioLevelFactory

public MarioLevelFactory()

MarioLevelFactory

public MarioLevelFactory(MarioSprite mario)
Parameters:
mario - A MarioSprite to be added to playfields generated by the factory.
Method Detail

getPlayfield

public PlayField getPlayfield(java.io.File levelFactoryFile)
Generates a MarioPlayField from a configuration file with the following template: In general: *variable*=*value* map=*location of level's map file* (only first is read) enemy=*enemy x*, *enemy y* mario=*mario x*,*mario y* (only first is read) overlay=*location of overlay XML file* music=*key for sound file* bg=[color/image]:[R,G,B/*key for image*]