____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include <vector>
#include <string>
#include "icons.h"
Go to the source code of this file.
Classes | |
| struct | CPatchIcon |
| class | CEditor |
Enumerations | |
| enum | EditorRunningType { EditorNotRunning = 0, EditorStarted = 1, EditorCommandLine = 2, EditorEditing = 4 } |
| enum | EditorStateType { EditorSelecting, EditorEditPatch, EditorEditUnit, EditorSetStartLocation } |
Functions | |
| void | SetEditorSelectIcon (const std::string &icon) |
| void | SetEditorUnitsIcon (const std::string &icon) |
| void | SetEditorPatchIcon (const std::string &icon) |
| void | SetEditorStartUnit (const std::string &name) |
| Start the editor. | |
| void | StartEditor (const std::string &filename) |
| Save a map from editor. | |
| int | EditorSaveMap (const std::string &file) |
| Start the patch editor. | |
| void | StartPatchEditor (const std::string &patchName) |
Variables | |
| CEditor | Editor |
| const char * | EditorStartFile |
| Editor CCL start file. | |
| bool | PatchEditorRunning |
Definition in file editor.h.
| enum EditorRunningType |
| enum EditorStateType |
| int EditorSaveMap | ( | const std::string & | file | ) |
Start the patch editor.
Save a map from editor.
| file | Save the level to this file. |
Definition at line 1855 of file editloop.cpp.
References Map, SaveStratagusMap(), and StratagusLibPath.
Referenced by tolua_stratagus_EditorSaveMap00().
| void SetEditorPatchIcon | ( | const std::string & | icon | ) |
Set the editor's patch icon
| icon | The icon to use. |
Definition at line 213 of file editloop.cpp.
References IconConfig::Name, and CEditor::Patch.
Referenced by tolua_stratagus_SetEditorPatchIcon00().
| void SetEditorSelectIcon | ( | const std::string & | icon | ) |
Set the editor's select icon
| icon | The icon to use. |
Definition at line 193 of file editloop.cpp.
References IconConfig::Name, and CEditor::Select.
Referenced by tolua_stratagus_SetEditorSelectIcon00().
| void SetEditorStartUnit | ( | const std::string & | name | ) |
Start the editor.
Set the editor's start location unit
| name | The name of the unit to use. |
Definition at line 223 of file editloop.cpp.
References CEditor::StartUnitName.
Referenced by tolua_stratagus_SetEditorStartUnit00().
| void SetEditorUnitsIcon | ( | const std::string & | icon | ) |
Set the editor's units icon
| icon | The icon to use. |
Definition at line 203 of file editloop.cpp.
References IconConfig::Name, and CEditor::Units.
Referenced by tolua_stratagus_SetEditorUnitsIcon00().
| void StartEditor | ( | const std::string & | filename | ) |
Save a map from editor.
Start the editor
| filename | Map to load, empty string to create a new map |
Definition at line 2007 of file editloop.cpp.
References _C_, CleanEditAi(), CleanGame(), CleanPatchIcons(), CleanPlayers(), CVideo::ClearScreen(), CurrentMapPath, DebugPrint, CMapInfo::Description, EditorMainLoop(), GetDefaultTextColors(), CMap::Info, Invalidate(), Map, CMapInfo::MapHeight, CMapInfo::MapWidth, MaxMapHeight, MaxMapWidth, SetDefaultTextColors(), strcpy_s(), and Video.
Referenced by tolua_stratagus_StartEditor00().
| void StartPatchEditor | ( | const std::string & | patchName | ) |
Definition at line 606 of file patch_editor.cpp.
References CPatchManager::add(), CPatchManager::clear(), CPatchType::getFile(), CPatchType::getFlags(), CPatchManager::getPatchType(), CPatchType::getTileHeight(), CPatchType::getTileWidth(), Map, CPatchManager::newPatchType(), PatchEditorMainLoop(), PatchFreeIcons(), PatchLoadIcons(), and CMap::PatchManager.
Referenced by tolua_stratagus_StartPatchEditor00().
Definition at line 86 of file editloop.cpp.
Referenced by DrawBuildingCursor(), DrawCursor(), DrawGuichanWidgets(), CViewport::DrawMapBackgroundInViewport(), DrawUnitOn(), DrawUnitSelection(), HideCursor(), MenuScreen::stop(), tolua_get_Editor(), tolua_set_Editor(), UpdateDisplay(), and WaitEventsOneFrame().
| const char* EditorStartFile |
Editor CCL start file.
Definition at line 88 of file editloop.cpp.
Referenced by CEditor::Init(), and main().
| bool PatchEditorRunning |
Definition at line 51 of file patch_editor.cpp.
Referenced by PatchExitButtonListener::action(), DrawCursor(), DrawGuichanWidgets(), HideCursor(), PatchEditorMainLoop(), and WaitEventsOneFrame().
1.5.6