|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jurpe.dungeon.Level
public class Level
Level contain objects found on a dungeon level, and it is composed by:
jurpe.dungeon.rpgmap.RpgMap;
,
Serialized FormConstructor Summary | |
---|---|
Level(RpgMap sMap,
int sLevel)
Dungeon Level |
Method Summary | |
---|---|
void |
addAvatar(Avatar av)
|
void |
fillWithItems(Dungeons dungeon)
Fill this level with random items |
void |
fillWithMonsters(Dungeons dungeon)
Fill this level with random monsters |
Avatar |
getAvatar()
|
Lootables |
getItems()
Return the random items in this level |
java.lang.String |
getLevelFileName()
Get the name that the file with this map will have. |
static java.lang.String |
getLevelFileName(int level)
The name that the file with the level map will have |
java.lang.String |
getLevelName()
Name of the level (ie> Underground_02) |
static java.lang.String |
getLevelName(int level)
Get the name for this level |
Monsters |
getMonsters()
Monsters object collection |
PlaceHolder |
getPlaceHolderIn(RpgMapPoint rpgPoint)
Get placeholder in this level rpgmappoint |
RpgMap |
getRpgMap()
Get RpgMap of this level |
int |
getZ()
Get the level. |
boolean |
isTherePlaceHolder(RpgMapPoint p)
Return true if there is a placeholder in this rpgmappoint |
java.util.AbstractList<PlaceHolder> |
placeHolders()
The placeholders in this map |
void |
removeAvatar()
|
boolean |
save()
Persist this level |
java.lang.String |
toString()
Return the name of this map |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Level(RpgMap sMap, int sLevel)
sMap
- RpgMap associated to this levelsLevel
- Dungeon levelMethod Detail |
---|
public void fillWithMonsters(Dungeons dungeon)
dungeon
- Dungeons handlepublic void fillWithItems(Dungeons dungeon)
dungeon
- Dungeons handlepublic void addAvatar(Avatar av)
av
- Avatarpublic void removeAvatar()
public Lootables getItems()
public Avatar getAvatar()
public Monsters getMonsters()
public java.util.AbstractList<PlaceHolder> placeHolders()
public PlaceHolder getPlaceHolderIn(RpgMapPoint rpgPoint)
rpgPoint
- RpgMapPoint
public boolean isTherePlaceHolder(RpgMapPoint p)
p
- RpgMapPoint
public int getZ()
public RpgMap getRpgMap()
jurpe.dungeon.rpgmap.RpgMap;
public boolean save()
public java.lang.String getLevelName()
public static java.lang.String getLevelName(int level)
level
- Level id
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLevelFileName()
public static java.lang.String getLevelFileName(int level)
level
- Level number of the map
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |