|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| 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. This is the current position of the player in the game map (RpgMap)
Placeholder,
RpgMap| Method Summary | |
|---|---|
void |
enableGunsight(boolean enabled)
Gunsight (aim mode). |
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 |
Gunsight |
getGunsight()
Aim gunsight |
Level |
getLevel()
Get Avatar level |
Placeholder |
getPlaceholder()
Get Avatar placeholder |
int |
getZLevel()
Get the underground level of the Avatar. |
boolean |
hasGunsight()
If the Avatar has started an aim mode. |
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 |
| 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()
getPlaceholder in interface IDungeonPawnpublic 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
JurpeExceptionpublic void resetAvatar()
public void enableGunsight(boolean enabled)
enabled - If true, enables aim mode. Else exit aim mode.public boolean hasGunsight()
public Gunsight getGunsight()
|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||