|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.dungeon.Dungeons
public class Dungeons
Dungeons is a representation of a multi-level Dungeon made by maps of hexagonal cells. The class holds references with other system objects.
RpgMap
,
Avatar
,
IDungeonGenerator
Constructor Summary | |
---|---|
Dungeons(Core system)
Constructor |
Method Summary | |
---|---|
void |
addAvatarToCurrentMap()
Add Avatar placeholder to current map |
void |
drawDungeon(Level dungeonLevel,
HexMap hexMapControl)
Draw dungeon into and HexMap control and connect its logic. |
Avatar |
getAvatar()
Handle to Avatar |
Level |
getCurrentLevel()
The level where avatar is |
RpgMap |
getCurrentMap()
Get current map |
int |
getCurrentMapLevel()
The current map level is where avatar is |
Level |
getDungeonLevel(int level)
Handle to Dungeon level |
DungeonLevels |
getDungeonLevels()
Return dungeon levels container |
Log |
getLog()
Handle to Log |
java.util.Random |
getRandomSeed()
Get random seed |
Core |
getSystem()
Get core handle |
void |
initAvatar(HexMap hexMapControl)
Set a new Avatar. |
void |
initializeLevels()
Initialize dungeon levels |
void |
reset()
Reset dungeon (when restarting a new game) |
void |
setCurrentLevel(Level level)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dungeons(Core system)
system
- Handle to core system.Method Detail |
---|
public void initializeLevels()
public java.util.Random getRandomSeed()
public Level getDungeonLevel(int level) throws JurpeException
level
- Level of dungeon
JurpeException
public DungeonLevels getDungeonLevels()
public Level getCurrentLevel() throws JurpeException
JurpeException
public void setCurrentLevel(Level level) throws JurpeException
level
- int
JurpeException
public RpgMap getCurrentMap() throws JurpeException
JurpeException
public int getCurrentMapLevel()
public Avatar getAvatar()
public Log getLog()
public void initAvatar(HexMap hexMapControl) throws JurpeException
hexMapControl
- HexMap HexMap control
JurpeException
public void addAvatarToCurrentMap() throws JurpeException
JurpeException
public void drawDungeon(Level dungeonLevel, HexMap hexMapControl) throws JurpeException
dungeonLevel
- Underground level of dungeonhexMapControl
- HexMap
JurpeException
public Core getSystem()
public void reset()
|
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 |