#include <vector>
#include <string>
#include <tuple>
#include "icons.h"
#include "vec2i.h"
Go to the source code of this file.
|
| enum | EditorRunningType { EditorNotRunning = 0,
EditorStarted = 1,
EditorCommandLine = 2,
EditorEditing = 4
} |
| |
| enum | EditorStateType { EditorSelecting,
EditorEditTile,
EditorEditUnit,
EditorSetStartLocation
} |
| |
| CEditor | Editor |
| |
| bool | TileToolNoFixup |
| |
| char | TileToolRandom |
| | Allow setting every tile, no fixups. More...
|
| |
| void | StartEditor (const char *filename) |
| | Start the editor. More...
|
| |
| void | EditorMainLoop () |
| | Editor main event loop. More...
|
| |
| void | EditorUpdateDisplay () |
| | Update editor display. More...
|
| |
| int | EditorSaveMap (const std::string &file) |
| | Save a map from editor. More...
|
| |
| int | EditorSaveMapWithResize (const std::string &file, Vec2i sz={0, 0}, Vec2i off={0, 0}) |
| |
| void | EditorCclRegister () |
| | Register ccl features. More...
|
| |
| void | EditorTileChanged (const Vec2i &pos) |
| | Update surroundings for tile changes. More...
|
| |
| void | EditorChangeTile (const Vec2i &pos, int tileIndex, int d, bool changeSurroundings) |
| |
◆ EditorRunningType
| Enumerator |
|---|
| EditorNotRunning | |
| EditorStarted | Not Running.
|
| EditorCommandLine | Editor Enabled at all.
|
| EditorEditing | Called from Command Line.
|
◆ EditorStateType
| Enumerator |
|---|
| EditorSelecting | |
| EditorEditTile | Select.
|
| EditorEditUnit | Edit tiles.
|
| EditorSetStartLocation | Edit units.
Set the start location
|
◆ EditorCclRegister()
| void EditorCclRegister |
( |
| ) |
|
Register ccl features.
Register CCL features for the editor.
◆ EditorChangeTile()
| void EditorChangeTile |
( |
const Vec2i & |
pos, |
|
|
int |
tileIndex, |
|
|
int |
d, |
|
|
bool |
changeSurroundings |
|
) |
| |
◆ EditorMainLoop()
Editor main event loop.
Editor main event loop.
◆ EditorSaveMap()
| int EditorSaveMap |
( |
const std::string & |
file | ) |
|
Save a map from editor.
Save a map from editor.
- Parameters
-
| file | Save the level to this file. |
- Returns
- 0 for success, -1 for error
- Todo:
- FIXME: Check if the map is valid, contains no failures. At least two players, one human slot, every player a startpoint ...
◆ EditorSaveMapWithResize()
| int EditorSaveMapWithResize |
( |
const std::string & |
file, |
|
|
Vec2i |
sz = {0, 0}, |
|
|
Vec2i |
off = {0, 0} |
|
) |
| |
◆ EditorTileChanged()
Update surroundings for tile changes.
Update surroundings for tile changes.
- Parameters
-
| pos | Map tile position of change. |
◆ EditorUpdateDisplay()
| void EditorUpdateDisplay |
( |
| ) |
|
Update editor display.
Update editor display.
◆ StartEditor()
| void StartEditor |
( |
const char * |
filename | ) |
|
Start the editor.
Start the editor
- Parameters
-
| filename | Map to load, NULL to create a new map |
◆ Editor
◆ TileToolNoFixup
◆ TileToolRandom
Allow setting every tile, no fixups.
(C) Copyright 1998-2012 by The