|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.games.mariogame.MarioLevelFactory
public class MarioLevelFactory
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 |
---|
public MarioLevelFactory()
public MarioLevelFactory(MarioSprite mario)
mario
- A MarioSprite to be added to playfields generated by the
factory.Method Detail |
---|
public PlayField getPlayfield(java.io.File levelFactoryFile)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |