|
|||||||||
| 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.
| Field Summary | |
|---|---|
private MapEditorTransformPanel.MapTransform |
currentMapTransform
The transform that should be applied to a Tile that is clicked on the map. |
private FreeColClient |
freeColClient
The main controller. |
private GUI |
gui
|
private static java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
MapEditorController(FreeColClient freeColClient,
GUI gui)
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. |
private void |
reloadMainPanel()
|
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger logger
private final FreeColClient freeColClient
private MapEditorTransformPanel.MapTransform currentMapTransform
Tile that is clicked on the map.
private GUI gui
| Constructor Detail |
|---|
public MapEditorController(FreeColClient freeColClient,
GUI gui)
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,
MapGeneratorOptionspublic 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.private void reloadMainPanel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||