|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.client.control.MapEditorController
public final class MapEditorController
The map editor controller.
Constructor Summary | |
---|---|
MapEditorController(FreeColClient freeColClient)
Creates a new MapEditorController . |
Method Summary | |
---|---|
MapEditorTransformPanel.MapTransform |
getMapTransform()
Gets the current MapTransform . |
void |
loadGame()
Opens a dialog where the user should specify the filename and loads the game. |
void |
loadGame(java.io.File file)
Loads a game from the given file. |
void |
newMap()
Creates a new map using a MapGenerator . |
void |
saveGame()
Opens a dialog where the user should specify the filename and saves the game. |
void |
saveGame(java.io.File file)
Saves the game to the given file. |
void |
setMapTransform(MapEditorTransformPanel.MapTransform mt)
Sets the currently chosen MapTransform . |
void |
startMapEditor()
Enters map editor modus. |
void |
transform(Tile t)
Transforms the given Tile using the
current . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapEditorController(FreeColClient freeColClient)
MapEditorController
.
freeColClient
- The main controller.Method Detail |
---|
public void startMapEditor()
public void setMapTransform(MapEditorTransformPanel.MapTransform mt)
MapTransform
.
mt
- The transform that should be applied to a
Tile
that is clicked on the map.public MapEditorTransformPanel.MapTransform getMapTransform()
MapTransform
.
Tile
that is clicked on the map.public void transform(Tile t)
Tile
using the
current MapTransform
.
t
- The Tile
to be modified.public void newMap()
MapGenerator
. A panel
with the MapGeneratorOptions
is first displayed.
MapGenerator
,
MapGeneratorOptions
public void saveGame()
public void saveGame(java.io.File file)
file
- The File
.public void loadGame()
public void loadGame(java.io.File file)
file
- The File
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |