|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.dungeon.Avatar
public final class Avatar
Avatar placeholder.
PlaceHolder
Constructor Summary | |
---|---|
Avatar()
|
Method Summary | |
---|---|
static Avatar |
getAvatar(java.util.Random rnd,
Dungeons dng)
Creates a new Avatar. |
java.awt.Color |
getAvatarBackground()
Get Avatar background color |
java.awt.Color |
getAvatarColor()
Get Avatar foreground color |
Direction |
getEdge(HexMap hexMap)
Get the direction in which Avatar is getting close to the perimenter |
Level |
getLevel()
|
PlaceHolder |
getPlaceHolder()
Get Avatar's placeholder |
int |
getZLevel()
Get the underground level of the Avatar. |
boolean |
isInVillage()
Return true if the Avatar is in the village (dungeon level 0) |
void |
move(Direction d)
Move avatar in some direction |
void |
resetAvatar()
Reset avatar |
void |
setInitialPosition(HexMap hexMap)
Set Avatar initial position. |
void |
setLevel(Level lvl)
Set avatar level |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Avatar()
Method Detail |
---|
public static Avatar getAvatar(java.util.Random rnd, Dungeons dng)
rnd
- Random Random seeddng
- Dungeon Handle to dungeons
public Level getLevel()
public PlaceHolder getPlaceHolder()
public int getZLevel()
public void setLevel(Level lvl)
lvl
- Levelpublic boolean isInVillage()
public java.awt.Color getAvatarColor()
public java.awt.Color getAvatarBackground()
public void move(Direction d) throws JurpeException
d
- A direction, as in Direction class
JurpeException
public Direction getEdge(HexMap hexMap) throws JurpeException
JurpeException
public void setInitialPosition(HexMap hexMap) throws JurpeException
hexMap
- HexMap
JurpeException
public void resetAvatar()
|
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 |