de.adom.jade.world.maps
Class SettlementMap

java.lang.Object
  extended by de.adom.jade.world.maps.Map
      extended by de.adom.jade.world.maps.OutdoorMap
          extended by de.adom.jade.world.maps.SettlementMap
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HumanVillageMap

public abstract class SettlementMap
extends OutdoorMap

Provides a base map class for all settlements.

See Also:
Serialized Form

Constructor Summary
SettlementMap(Location theLocation, int theWidth, int theHeight, boolean finite)
          Builds an outdoor map.
 
Method Summary
 int getSightRange(Being being)
          Returns the sight range for a given being on this map.
 
Methods inherited from class de.adom.jade.world.maps.OutdoorMap
placePool, placeTrees
 
Methods inherited from class de.adom.jade.world.maps.Map
addArea, addMapListener, attach, buildConnections, fireMapUpdated, getAreas, getBeing, getDirectionalXModifier, getDirectionalYModifier, getDistance, getDX, getDY, getHeight, getLocation, getMapView, getOpenBuilderTile, getRandomX, getRandomY, getTile, getVisibilityBlockadeLevel, getWidth, getWrappedX, getWrappedY, isDark, isEmpty, isFinite, isValidPosition, placeAreas, removeBeing, removeMapListener, setBeing, setDark, setPointOfView, setTile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettlementMap

public SettlementMap(Location theLocation,
                     int theWidth,
                     int theHeight,
                     boolean finite)
Builds an outdoor map.

Parameters:
theLocation - the location to which the map belongs
theWidth - the width of the map (will be increased if necessary to even it)
theHeight - the height of the map (will be increased if necessary to even it)
finite - a flag indicating whether the map is finite or not
Method Detail

getSightRange

public int getSightRange(Being being)
Description copied from class: Map
Returns the sight range for a given being on this map.

Overrides:
getSightRange in class Map
Parameters:
being - the being
Returns:
the sight rage for the being in question
See Also:
Sight ranges are enhanced for settlements.