|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.engine.LevelData
This class contains the data associated with a certain level. It is essentially your template to create playable levels.
| Constructor Summary | |
LevelData()
Creates a new LevelData instance. |
|
| Method Summary | |
void |
addJob(java.lang.String idd,
int num)
Adds the number of jobs for the appropriate job id for the level. |
void |
addPortal(java.lang.String type,
java.lang.String value)
Describe addPortal method here. |
java.awt.Point |
getEntrancePoint()
Get the value of entrancePoint. |
java.awt.Point |
getExitPoint()
Get the value of exitPoint. |
java.lang.String |
getId()
Access method for the id property. |
java.util.Map |
getJobMap()
Returns the job map. |
java.lang.String |
getName()
Access method for the name property. |
int |
getNumJobs(java.lang.String idd)
Returns the number of jobs of the specified type for this level. |
int |
getNumLemmings()
Access method for the numLemmings property. |
int |
getPercentToSave()
Access method for the percentToSave property. |
java.util.List |
getPortals()
Describe getPortals method here. |
java.awt.image.BufferedImage |
getThumbnail()
Access method for the thumbnail property. |
long |
getTimeLimit()
Access method for the timeLimit property. |
int |
getWaterLevel()
Get the value of waterLevel. |
void |
setEntrancePoint(int x,
int y)
Set the value of entrancePoint. |
void |
setEntrancePoint(java.awt.Point v)
Set the value of entrancePoint. |
void |
setExitPoint(int x,
int y)
Set the value of exitPoint. |
void |
setExitPoint(java.awt.Point v)
Set the value of exitPoint. |
void |
setId(java.lang.String aId)
Sets the value of the id property. |
void |
setJobMap(java.util.Map jm)
Sets the job map |
void |
setName(java.lang.String aName)
Sets the value of the name property. |
void |
setNumLemmings(int aNumLemmings)
Sets the value of the numLemmings property. |
void |
setPercentToSave(int aPercentToSave)
Sets the value of the percentToSave property. |
void |
setThumbnail(java.awt.image.BufferedImage aThumbnail)
Sets the value of the thumbnail property. |
void |
setTimeLimit(long aTimeLimit)
Sets the value of the timeLimit property. |
void |
setWaterLevel(int v)
Set the value of waterLevel. |
java.lang.String |
toString()
Returns the string representation of the level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LevelData()
LevelData instance.
| Method Detail |
public java.awt.image.BufferedImage getThumbnail()
public void setThumbnail(java.awt.image.BufferedImage aThumbnail)
aThumbnail - the new value of the thumbnail propertypublic java.lang.String getName()
public void setName(java.lang.String aName)
aName - the new value of the name propertypublic java.lang.String getId()
public void setId(java.lang.String aId)
aId - the new value of the id propertypublic int getNumLemmings()
public void setNumLemmings(int aNumLemmings)
aNumLemmings - the new value of the numLemmings propertypublic int getPercentToSave()
public void setPercentToSave(int aPercentToSave)
aPercentToSave - the new value of the percentToSave propertypublic long getTimeLimit()
public void setTimeLimit(long aTimeLimit)
aTimeLimit - the new value of the timeLimit propertypublic java.awt.Point getEntrancePoint()
public void setEntrancePoint(java.awt.Point v)
v - Value to assign to entrancePoint.
public void setEntrancePoint(int x,
int y)
x - an int valuey - an int valuepublic java.awt.Point getExitPoint()
public void setExitPoint(java.awt.Point v)
v - Value to assign to exitPoint.
public void setExitPoint(int x,
int y)
x - an int valuey - an int valuepublic int getWaterLevel()
public void setWaterLevel(int v)
v - Value to assign to waterLevel.
public void addJob(java.lang.String idd,
int num)
idd - a String valuenum - an int valuepublic int getNumJobs(java.lang.String idd)
idd - a String value
int valuepublic java.util.Map getJobMap()
Map valuepublic void setJobMap(java.util.Map jm)
jm - , map of jobs to setpublic java.util.List getPortals()
getPortals method here.
List value
public void addPortal(java.lang.String type,
java.lang.String value)
addPortal method here.
type - a String valuevalue - a String valuepublic java.lang.String toString()
String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||