|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.model.FreeColGameObject
net.sf.freecol.common.model.Region
net.sf.freecol.server.model.ServerRegion
public class ServerRegion
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.freecol.common.model.Region |
|---|
Region.RegionType |
| Field Summary | |
|---|---|
private java.awt.Rectangle |
bounds
A Rectangle that contains all points of the Region. |
private int |
size
The size of this Region (number of Tiles). |
| Fields inherited from class net.sf.freecol.common.model.Region |
|---|
PACIFIC_NAME_KEY |
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, PARTIAL_ATTRIBUTE |
| Constructor Summary | |
|---|---|
ServerRegion(Game game,
java.lang.String nameKey,
Region.RegionType type)
|
|
ServerRegion(Game game,
java.lang.String nameKey,
Region.RegionType type,
Region parent)
|
|
| Method Summary | |
|---|---|
void |
addTile(Tile tile)
Add the given Tile to this Region. |
java.awt.Rectangle |
getBounds()
Get the Bounds value. |
Map.Position |
getCenter()
Return the center of the Region's bounding box. |
int |
getSize()
Get the Size value. |
void |
setBounds(java.awt.Rectangle newBounds)
Set the Bounds value. |
void |
setSize(int newSize)
Set the Size value. |
| Methods inherited from class net.sf.freecol.common.model.Region |
|---|
discover, getChildren, getDiscoverableRegion, getDiscoveredBy, getDiscoveredIn, getDisplayName, getName, getNameKey, getParent, getScoreValue, getType, getTypeName, getXMLElementTagName, isClaimable, isDiscoverable, isLeaf, isPacific, isPrediscovered, isRoot, readFromXMLImpl, setChildren, setClaimable, setDiscoverable, setDiscoveredBy, setDiscoveredIn, setName, setNameKey, setParent, setPrediscovered, setScoreValue, setType, toString, toXMLImpl |
| Methods inherited from class net.sf.freecol.common.model.FreeColGameObject |
|---|
addModelMessage, addModelMessage, addModelMessage, addToRemoveElement, dispose, equals, equals, getFreeColGameObject, getFreeColGameObject, getGame, getGameOptions, getIntegerID, hashCode, hasID, isDisposed, isUninitialized, readFromXML, readFromXMLPartialByClass, setFakeID, setGame, setId, toSavedXML, toXML, toXMLImpl, toXMLPartialByClass, updateFreeColGameObject, updateID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int size
private java.awt.Rectangle bounds
| Constructor Detail |
|---|
public ServerRegion(Game game,
java.lang.String nameKey,
Region.RegionType type)
public ServerRegion(Game game,
java.lang.String nameKey,
Region.RegionType type,
Region parent)
| Method Detail |
|---|
public final int getSize()
Size value.
int valuepublic final void setSize(int newSize)
Size value.
newSize - The new Size value.public final java.awt.Rectangle getBounds()
Bounds value.
Rectangle valuepublic final void setBounds(java.awt.Rectangle newBounds)
Bounds value.
newBounds - The new Bounds value.public void addTile(Tile tile)
tile - a Tile valuepublic Map.Position getCenter()
Position value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||