games.strategy.kingstable.ui
Class MapData
java.lang.Object
games.strategy.kingstable.ui.MapData
public class MapData
- extends java.lang.Object
- Version:
- $LastChangedDate: 2007-06-19 11:39:15 -0700 (Tue, 19 Jun 2007) $
- Author:
- Lane Schwartz
|
Constructor Summary |
MapData(GameData gameData,
int x_dim,
int y_dim,
int squareWidth,
int squareHeight)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapData
public MapData(GameData gameData,
int x_dim,
int y_dim,
int squareWidth,
int squareHeight)
getPolygons
public java.util.Map<Territory,java.awt.Polygon> getPolygons()
getPolygon
public java.awt.Polygon getPolygon(Territory at)
getTerritoryAt
public Territory getTerritoryAt(double x,
double y)
- Get the territory at the x,y co-ordinates could be null.
getMapDimensions
public java.awt.Dimension getMapDimensions()