de.adom.jade.world.maps
Class WorldMap

java.lang.Object
  extended by de.adom.jade.world.maps.Map
      extended by de.adom.jade.world.maps.WorldMap
All Implemented Interfaces:
java.io.Serializable, StartupConstants

public class WorldMap
extends Map
implements StartupConstants

Creates the central world map for the game. This map is in so far unique as each game contains only one of its type. As the creation of the main world requires quite a bit of time, the creation process will be reflected on the initial splash screen.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface de.adom.jade.startup.StartupConstants
PL_BASIC_MAP_FINISHED, PL_DESERTS_FINISHED, PL_DUNGEONS_FINISHED, PL_GENESIS_DATA_CLEANED_UP, PL_GENESIS_DATA_CREATED, PL_MAXIMUM, PL_PRE_UI_INITIALIZATION, PL_RIVERS_FINISHED, PL_SEISMIC_ACTIVITY_FINISHED, PL_SETTLEMENTS_FINISHED, PL_SWAMPS_FINISHED, PL_WORD_FORMS_FINISHED, PL_WORLD_MAP_FINISHED
 
Constructor Summary
WorldMap(SplashScreen splashScreen, Location location, int width, int height)
          Creates a new world 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.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

WorldMap

public WorldMap(SplashScreen splashScreen,
                Location location,
                int width,
                int height)
Creates a new world map. The ma is created by simlating a lot of seismic activity and cosmic events to shape the continents. Then rivers and cities are placed in a semi-random manner.

Parameters:
splashScreen - the splash screen for the creation messages
location - the location to which this map belongs
width - the width of the world map
height - the height of the world map
Method Detail

getSightRange

public int getSightRange(Being being)
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