[mud4j-commit] SF.net SVN: mud4j: [145] trunk/mud4j-core/src/java/net/sf/mud4j/world
Status: Pre-Alpha
Brought to you by:
mpurland
|
From: <mpu...@us...> - 2007-10-02 15:52:41
|
Revision: 145
http://mud4j.svn.sourceforge.net/mud4j/?rev=145&view=rev
Author: mpurland
Date: 2007-10-02 08:52:38 -0700 (Tue, 02 Oct 2007)
Log Message:
-----------
Refactor usage of Area to Zone
Modified Paths:
--------------
trunk/mud4j-core/src/java/net/sf/mud4j/world/AbstractWorld.java
trunk/mud4j-core/src/java/net/sf/mud4j/world/World.java
Added Paths:
-----------
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractZone.java
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Zone.java
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24ZoneConverter.java
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/ZoneConverter.java
Removed Paths:
-------------
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractArea.java
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Area.java
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/AreaConverter.java
trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24AreaConverter.java
Modified: trunk/mud4j-core/src/java/net/sf/mud4j/world/AbstractWorld.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/AbstractWorld.java 2007-10-02 15:43:24 UTC (rev 144)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/AbstractWorld.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -18,7 +18,7 @@
import java.util.List;
-import net.sf.mud4j.world.area.Area;
+import net.sf.mud4j.world.zone.Zone;
/**
* Abstract implementation for a world.
@@ -27,8 +27,8 @@
*/
public class AbstractWorld implements World {
- // List of areas in the world
- private List<Area> areaList;
+ // List of zones in the world
+ private List<Zone> zoneList;
// List of characters in the world
private List<Character> characterList;
@@ -36,8 +36,8 @@
/**
* {@inheritDoc}s
*/
- public List<Area> getAreas() {
- return areaList;
+ public List<Zone> getZones() {
+ return zoneList;
}
/**
Modified: trunk/mud4j-core/src/java/net/sf/mud4j/world/World.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/World.java 2007-10-02 15:43:24 UTC (rev 144)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/World.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -18,7 +18,7 @@
import java.util.List;
-import net.sf.mud4j.world.area.Area;
+import net.sf.mud4j.world.zone.Zone;
/**
* World interface for defining world types.
@@ -27,10 +27,10 @@
*/
public interface World {
/**
- * Get list of areas.
- * @return Return list of areas.
+ * Get list of zones.
+ * @return Return list of zones.
*/
- public List<Area> getAreas();
+ public List<Zone> getZones();
/**
* Get list of characters in the world.
Deleted: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractArea.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractArea.java 2007-10-02 15:43:24 UTC (rev 144)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractArea.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -1,75 +0,0 @@
-/**
- * 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.area;
-
-import java.util.List;
-
-import net.sf.mud4j.character.Character;
-import net.sf.mud4j.world.Room;
-import net.sf.mud4j.world.item.Item;
-
-/**
- * Abstract implementation of areas.
- *
- * @author Matthew Purland
- */
-public class AbstractArea implements Area {
-
- // Name of the area
- private String areaName;
-
- /**
- * Constructs a new area with the specified area name.
- *
- * @param areaName Name of the area.
- */
- public AbstractArea(String areaName) {
- this.areaName = areaName;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getAreaName() {
- return areaName;
- }
-
- /**
- * {@inheritDoc}
- */
- public List<Character> getCharacters() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public List<Item> getItems() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public List<Room> getRooms() {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
Copied: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractZone.java (from rev 144, trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractArea.java)
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractZone.java (rev 0)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/AbstractZone.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -0,0 +1,75 @@
+/**
+ * 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.zone;
+
+import java.util.List;
+
+import net.sf.mud4j.character.Character;
+import net.sf.mud4j.world.Room;
+import net.sf.mud4j.world.item.Item;
+
+/**
+ * Abstract implementation of areas.
+ *
+ * @author Matthew Purland
+ */
+public class AbstractZone implements Zone {
+
+ // Name of the area
+ private String areaName;
+
+ /**
+ * Constructs a new area with the specified area name.
+ *
+ * @param areaName Name of the area.
+ */
+ public AbstractZone(String areaName) {
+ this.areaName = areaName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getAreaName() {
+ return areaName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<Character> getCharacters() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<Item> getItems() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List<Room> getRooms() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Deleted: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Area.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Area.java 2007-10-02 15:43:24 UTC (rev 144)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Area.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -1,60 +0,0 @@
-/**
- * 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.area;
-
-import java.util.List;
-
-import net.sf.mud4j.character.Character;
-import net.sf.mud4j.world.Room;
-import net.sf.mud4j.world.item.Item;
-
-/**
- * Area interface for different types of areas.
- *
- * @author Matthew Purland
- */
-public interface Area {
-
- /**
- * Get name of the area.
- *
- * @return Get name of the area.
- */
- public String getAreaName();
-
- /**
- * Retrieve list of rooms contained in the area.
- *
- * @return Returns a list of rooms in the area.
- */
- public List<Room> getRooms();
-
- /**
- * Retrieve list of players contained in the area.
- *
- * @return Returns a list of characters in the area.
- */
- public List<Character> getCharacters();
-
- /**
- * Retrieve list of items contained in area.
- *
- * @return Returns a list of items in the area.
- */
- public List<Item> getItems();
-
-}
Copied: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Zone.java (from rev 144, trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Area.java)
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Zone.java (rev 0)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/Zone.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -0,0 +1,60 @@
+/**
+ * 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.zone;
+
+import java.util.List;
+
+import net.sf.mud4j.character.Character;
+import net.sf.mud4j.world.Room;
+import net.sf.mud4j.world.item.Item;
+
+/**
+ * Area interface for different types of areas.
+ *
+ * @author Matthew Purland
+ */
+public interface Zone {
+
+ /**
+ * Get name of the area.
+ *
+ * @return Get name of the area.
+ */
+ public String getAreaName();
+
+ /**
+ * Retrieve list of rooms contained in the area.
+ *
+ * @return Returns a list of rooms in the area.
+ */
+ public List<Room> getRooms();
+
+ /**
+ * Retrieve list of players contained in the area.
+ *
+ * @return Returns a list of characters in the area.
+ */
+ public List<Character> getCharacters();
+
+ /**
+ * Retrieve list of items contained in area.
+ *
+ * @return Returns a list of items in the area.
+ */
+ public List<Item> getItems();
+
+}
Deleted: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/AreaConverter.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/AreaConverter.java 2007-10-02 15:43:24 UTC (rev 144)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/AreaConverter.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -1,29 +0,0 @@
-/**
- * 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.area.convert;
-
-/**
- * Area converter interface to define a set of area
- * converters from different types of games with
- * areas already defined.
- *
- * @author Matthew Purland
- *
- */
-public interface AreaConverter {
-
-}
Deleted: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24AreaConverter.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24AreaConverter.java 2007-10-02 15:43:24 UTC (rev 144)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24AreaConverter.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -1,26 +0,0 @@
-/**
- * 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.area.convert;
-
-/**
- * Area converter to convert areas from Rom24 area format to import directly
- * into mud4j equivalent classes.
- *
- * @author Matthew Purland
- */
-public class Rom24AreaConverter {
-
-}
Copied: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24ZoneConverter.java (from rev 144, trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24AreaConverter.java)
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24ZoneConverter.java (rev 0)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/Rom24ZoneConverter.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -0,0 +1,26 @@
+/**
+ * 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.zone.convert;
+
+/**
+ * Area converter to convert areas from Rom24 area format to import directly
+ * into mud4j equivalent classes.
+ *
+ * @author Matthew Purland
+ */
+public class Rom24ZoneConverter {
+
+}
Copied: trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/ZoneConverter.java (from rev 144, trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/AreaConverter.java)
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/ZoneConverter.java (rev 0)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/world/zone/convert/ZoneConverter.java 2007-10-02 15:52:38 UTC (rev 145)
@@ -0,0 +1,29 @@
+/**
+ * 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.zone.convert;
+
+/**
+ * Area converter interface to define a set of area
+ * converters from different types of games with
+ * areas already defined.
+ *
+ * @author Matthew Purland
+ *
+ */
+public interface ZoneConverter {
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|