[mud4j-commit] SF.net SVN: mud4j: [64] trunk/mud4j-core/src/java/net/sf/mud4j/world/Room. java
Status: Pre-Alpha
Brought to you by:
mpurland
From: <mpu...@us...> - 2006-12-24 23:11:07
|
Revision: 64 http://mud4j.svn.sourceforge.net/mud4j/?rev=64&view=rev Author: mpurland Date: 2006-12-24 15:11:05 -0800 (Sun, 24 Dec 2006) Log Message: ----------- Update room for tile location. Modified Paths: -------------- trunk/mud4j-core/src/java/net/sf/mud4j/world/Room.java Modified: trunk/mud4j-core/src/java/net/sf/mud4j/world/Room.java =================================================================== --- trunk/mud4j-core/src/java/net/sf/mud4j/world/Room.java 2006-12-24 23:10:40 UTC (rev 63) +++ trunk/mud4j-core/src/java/net/sf/mud4j/world/Room.java 2006-12-24 23:11:05 UTC (rev 64) @@ -30,33 +30,46 @@ * * @author Matthew Purland */ -public class Room implements Location { +public class Room implements TileLocation { // List of directions private List<Direction> directionList = new ArrayList<Direction>(); private EffectBehavior effectBehavior; + private String roomName; public Room() { } /** - * Add a direction to the location. - * @param direction Direction to add to the room. + * Get the name of the location. */ + public String getName() { + return roomName; + } + + /** + * Set the name of the location; + */ + public void setName(String name) { + this.roomName = name; + } + + /** + * {@inheritDoc} + */ public void addDirection(Direction direction) { directionList.add(direction); } /** - * Remove a direction from the location. + * {@inheritDoc} */ public void removeDirection(Direction direction) { directionList.remove(direction); } /** - * Get list of directions for the location. - * @return Returns the list implementation for the location. + * {@inheritDoc} */ public List<Direction> getDirections() { return directionList; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |