|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mud4j.world.Room
public class Room
Defines rooms interface as a location that events happen within. TODO implement events for when a Placeable becomes moved TODO keep internal list of Placeables within room
| Constructor Summary | |
|---|---|
Room()
|
|
| Method Summary | |
|---|---|
void |
addDirection(Direction direction)
Add a direction to the location. |
java.util.List<Direction> |
getDirections()
Get list of directions for the location. |
EffectBehavior |
getEffectBehavior()
Get effect behavior to handle effects. |
java.lang.String |
getName()
Get the name of the location. |
void |
move(Placeable placeable)
Move a Placeable object to this location. |
void |
removeDirection(Direction direction)
Remove a direction from the location. |
void |
setEffectBehavior(EffectBehavior effectBehavior)
Set effect behavior on the effectable object. |
void |
setName(java.lang.String name)
Set the name of the location; |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Room()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
public void addDirection(Direction direction)
addDirection in interface TileLocationdirection - Direction to add to the location.public void removeDirection(Direction direction)
removeDirection in interface TileLocationdirection - to remove from the location.public java.util.List<Direction> getDirections()
getDirections in interface TileLocationpublic void move(Placeable placeable)
Placeable object to this location.
move in interface Locationplaceable - Placeable object to move to this location.public EffectBehavior getEffectBehavior()
getEffectBehavior in interface Effectablepublic void setEffectBehavior(EffectBehavior effectBehavior)
setEffectBehavior in interface Effectable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||