_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
76 std::vector<std::tuple<std::string, int, int, int>>
RandomUnits;
146 #endif // !__EDITOR_H__
int PopUpX
Current editor state.
Definition: editor.h:106
@ EditorStarted
Not Running.
Definition: editor.h:51
bool MapLoaded
Player selected for draw.
Definition: editor.h:99
int PopUpY
Definition: editor.h:107
void EditorUpdateDisplay()
Update editor display.
Definition: editloop.cpp:1030
std::vector< std::string > UnitTypes
neutral units to add randomly. (name, count, initial resources, tile under unit)
Definition: editor.h:78
void CreateRandomMap(bool shuffleTransitions=false) const
Make random map.
Definition: edmap.cpp:432
@ EditorSetStartLocation
Edit units.
Definition: editor.h:60
Icon reference (used in config tables)
Definition: icons.h:172
@ EditorEditTile
Select.
Definition: editor.h:58
int SelectedTileIndex
tile icon under cursor.
Definition: editor.h:94
IconConfig Units
Editor's select icon.
Definition: editor.h:84
const CUnitType * StartUnit
name of the Unit used to display the start location.
Definition: editor.h:86
int CursorPlayer
tile type to draw.
Definition: editor.h:96
void EditorCclRegister()
Register ccl features.
Definition: script_editor.cpp:155
void EditorChangeTile(const Vec2i &pos, int tileIndex, int d, bool changeSurroundings)
int CursorTileIndex
tile icon draw index.
Definition: editor.h:93
std::vector< unsigned int > ShownTileTypes
Shown editor unit-type table.
Definition: editor.h:80
void EditorMainLoop()
Editor main event loop.
Definition: editloop.cpp:1940
IconConfig Select
Is the terrain editable ?
Definition: editor.h:83
void EditorTileChanged(const Vec2i &pos)
Update surroundings for tile changes.
Definition: edmap.cpp:262
Definition: unittype.h:508
EditorStateType
Definition: editor.h:56
bool WriteCompressedMaps
Map loaded in editor.
Definition: editor.h:100
int SelectedUnitIndex
Unit icon under cursor.
Definition: editor.h:90
bool TileToolNoFixup
Definition: editloop.cpp:96
std::vector< const CUnitType * > ShownUnitTypes
Sorted editor unit-type table.
Definition: editor.h:79
int EditorSaveMap(const std::string &file)
Save a map from editor.
Definition: editloop.cpp:1911
@ EditorSelecting
Definition: editor.h:57
char TileToolRandom
Allow setting every tile, no fixups.
Definition: editloop.cpp:97
std::vector< std::tuple< int, int, int > > RandomTiles
Tile to fill the map with initially;.
Definition: editor.h:75
std::string StartUnitName
Editor's units icon.
Definition: editor.h:85
EditorRunningType Running
Use compression when saving.
Definition: editor.h:102
int SelectedPlayer
Player under the cursor.
Definition: editor.h:97
@ EditorCommandLine
Editor Enabled at all.
Definition: editor.h:52
EditorStateType State
Editor is running.
Definition: editor.h:104
EditorRunningType
Definition: editor.h:49
void Init()
Definition: editloop.cpp:1800
@ EditorEditing
Called from Command Line.
Definition: editor.h:53
CEditor()
Definition: editor.cpp:76
~CEditor()
Definition: editor.h:67
int BaseTileIndex
Variables for random map creation.
Definition: editor.h:74
int EditorSaveMapWithResize(const std::string &file, Vec2i sz={0, 0}, Vec2i off={0, 0})
Definition: editloop.cpp:1922
@ EditorEditUnit
Edit tiles.
Definition: editor.h:59
bool TerrainEditable
Shown editor tile-type table.
Definition: editor.h:82
CEditor Editor
Definition: script_editor.cpp:44
int UnitIndex
Unit used to display the start location.
Definition: editor.h:88
int TileIndex
Unit type to draw.
Definition: editor.h:92
int CursorUnitIndex
Unit icon draw index.
Definition: editor.h:89
std::vector< std::tuple< std::string, int, int, int > > RandomUnits
other tiles to fill randomly. (tile, count, area size)
Definition: editor.h:76
void StartEditor(const char *filename)
Start the editor.
Definition: editloop.cpp:2185
@ EditorNotRunning
Definition: editor.h:50
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.