$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <vector>
#include <string>
#include "icons.h"
Go to the source code of this file.
Classes | |
class | CEditor |
editor.h - The editor file. | |
enum | EditorRunningType { EditorNotRunning = 0, EditorStarted = 1, EditorCommandLine = 2, EditorEditing = 4 } |
enum | EditorStateType { EditorSelecting, EditorEditTile, EditorEditUnit, EditorSetStartLocation } |
CEditor | Editor |
void | StartEditor (const char *filename) |
Start the editor. | |
void | EditorMainLoop () |
Editor main event loop. | |
void | EditorUpdateDisplay () |
Update editor display. | |
int | EditorSaveMap (const std::string &file) |
Save a map from editor. | |
void | EditorCclRegister () |
Register ccl features. | |
void | EditTile (const Vec2i &pos, int tile) |
Edit tile. | |
void | EditTiles (const Vec2i &pos, int tile, int size) |
Edit tiles. | |
void | ChangeTile (const Vec2i &pos, int tile) |
Change the view of a tile. | |
void | EditorTileChanged (const Vec2i &pos) |
Update surroundings for tile changes. |
enum EditorRunningType |
enum EditorStateType |
void ChangeTile | ( | const Vec2i & | pos, | |
int | tile | |||
) |
Change the view of a tile.
void EditorCclRegister | ( | ) |
Register ccl features.
Register CCL features for the editor.
void EditorMainLoop | ( | ) |
Editor main event loop.
Editor main event loop.
int EditorSaveMap | ( | const std::string & | file | ) |
Save a map from editor.
Save a map from editor.
file | Save the level to this file. |
void EditorTileChanged | ( | const Vec2i & | pos | ) |
Update surroundings for tile changes.
void EditorUpdateDisplay | ( | ) |
Update editor display.
Update editor display.
void EditTile | ( | const Vec2i & | pos, | |
int | tile | |||
) |
Edit tile.
void EditTiles | ( | const Vec2i & | pos, | |
int | tile, | |||
int | size | |||
) |
Edit tiles.
void StartEditor | ( | const char * | filename | ) |
Start the editor.
Start the editor
filename | Map to load, NULL to create a new map |