Revision: 48
http://mud4j.svn.sourceforge.net/mud4j/?rev=48&view=rev
Author: mpurland
Date: 2006-12-24 09:35:53 -0800 (Sun, 24 Dec 2006)
Log Message:
-----------
Add tile locations. This will allow tile locations to provide directions from which the next tile can connect through directions.
Added Paths:
-----------
trunk/mud4j-core/src/java/net/sf/mud4j/world/TileLocation.java
Added: trunk/mud4j-core/src/java/net/sf/mud4j/world/TileLocation.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/TileLocation.java (rev 0)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/TileLocation.java 2006-12-24 17:35:53 UTC (rev 48)
@@ -0,0 +1,44 @@
+/**
+ * Copyright 2006 Matthew Purland (m.p...@gm...)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package net.sf.mud4j.world;
+
+import java.util.List;
+
+/**
+ * Location that represents a single tile that contains
+ * directions that link to other locations.
+ *
+ * @author Matthew Purland
+ */
+public interface TileLocation extends Location {
+ /**
+ * Add a direction to the location.
+ * @param direction Direction to add to the location.
+ */
+ public void addDirection(Direction direction);
+
+ /**
+ * Remove a direction from the location.
+ * @param direction to remove from the location.
+ */
+ public void removeDirection(Direction direction);
+
+ /**
+ * Get list of directions for the location.
+ * @return Returns the list implementation for the location.
+ */
+ public List<Direction> getDirections();
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|