View Javadoc

1   /**
2    * Copyright 2006 Matthew Purland (m.purland@gmail.com)
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  package net.sf.mud4j.world;
17  
18  import java.util.List;
19  
20  /**
21   * Location that represents a single tile that contains
22   * directions that link to other locations.
23   * 
24   * @author Matthew Purland
25   */
26  public interface TileLocation extends Location {
27      /**
28       * Add a direction to the location.
29       * @param direction Direction to add to the location.
30       */
31      public void addDirection(Direction direction);
32  
33      /**
34       * Remove a direction from the location.
35       * @param direction to remove from the location.
36       */
37      public void removeDirection(Direction direction);    
38      
39      /**
40       * Get list of directions for the location.
41       * @return Returns the list implementation for the location.
42       */
43      public List<Direction> getDirections();
44  }