|
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.Movement
public class Movement
The class Movement takes in input a direction in the current level, scan the cell in the destination and returns if the desired movement is allowed and a feedback string.
| Constructor Summary | |
|---|---|
Movement(Level dungeonLevel,
Cell fromCell,
Direction dir)
Create a movement instance |
|
| Method Summary | |
|---|---|
boolean |
allowOverMonsters()
True, if movement is allowed over monsters |
java.lang.String |
getFeedback()
Get any communication from the destination cell (ie: there's a sign here...) |
java.lang.String |
getMonsterName()
Get the monster name in the destination cell |
boolean |
isMovementAllowed()
If the movement between the starting cell and the destination cell is allowed |
void |
setAllowOverMonsters(boolean allow)
Allow movement over monsters and PC (ie: gunsight) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Movement(Level dungeonLevel,
Cell fromCell,
Direction dir)
dungeonLevel - Current levelfromCell - Starting celldir - Direction from starting celltoCell - Destination cell| Method Detail |
|---|
public java.lang.String getMonsterName()
public java.lang.String getFeedback()
public boolean isMovementAllowed()
public void setAllowOverMonsters(boolean allow)
allowOverMonsters - if true, isMovementAllowed returns true even in the cell is a
monsterpublic boolean allowOverMonsters()
|
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 | |||||||||