_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Public Attributes | List of all members
CEditor Class Reference

#include <editor.h>

Public Member Functions

 ~CEditor ()
 
editor.cpp - Editor functions.
 CEditor ()
 
editloop.cpp - The editor main loop.
void Init ()
 
edmap.cpp - Editor map functions.
void CreateRandomMap (bool shuffleTransitions=false) const
 Make random map. More...
 

Public Attributes

int BaseTileIndex
 Variables for random map creation. More...
 
std::vector< std::tuple< int, int, int > > RandomTiles
 Tile to fill the map with initially;. More...
 
std::vector< std::tuple< std::string, int, int, int > > RandomUnits
 other tiles to fill randomly. (tile, count, area size) More...
 
std::vector< std::string > UnitTypes
 neutral units to add randomly. (name, count, initial resources, tile under unit) More...
 
std::vector< const CUnitType * > ShownUnitTypes
 Sorted editor unit-type table. More...
 
std::vector< unsigned int > ShownTileTypes
 Shown editor unit-type table. More...
 
bool TerrainEditable
 Shown editor tile-type table. More...
 
IconConfig Select
 Is the terrain editable ? More...
 
IconConfig Units
 Editor's select icon. More...
 
std::string StartUnitName
 Editor's units icon. More...
 
const CUnitTypeStartUnit
 name of the Unit used to display the start location. More...
 
int UnitIndex
 Unit used to display the start location. More...
 
int CursorUnitIndex
 Unit icon draw index. More...
 
int SelectedUnitIndex
 Unit icon under cursor. More...
 
int TileIndex
 Unit type to draw. More...
 
int CursorTileIndex
 tile icon draw index. More...
 
int SelectedTileIndex
 tile icon under cursor. More...
 
int CursorPlayer
 tile type to draw. More...
 
int SelectedPlayer
 Player under the cursor. More...
 
bool MapLoaded
 Player selected for draw. More...
 
bool WriteCompressedMaps
 Map loaded in editor. More...
 
EditorRunningType Running
 Use compression when saving. More...
 
EditorStateType State
 Editor is running. More...
 
int PopUpX
 Current editor state. More...
 
int PopUpY
 

Constructor & Destructor Documentation

◆ CEditor()

CEditor::CEditor ( )

◆ ~CEditor()

CEditor::~CEditor ( )
inline

Member Function Documentation

◆ CreateRandomMap()

void CEditor::CreateRandomMap ( bool  shuffleTranslitions = false) const

Make random map.

Create a random map

◆ Init()

void CEditor::Init ( )

Create editor.

Member Data Documentation

◆ BaseTileIndex

int CEditor::BaseTileIndex

Variables for random map creation.

◆ CursorPlayer

int CEditor::CursorPlayer

tile type to draw.

◆ CursorTileIndex

int CEditor::CursorTileIndex

tile icon draw index.

◆ CursorUnitIndex

int CEditor::CursorUnitIndex

Unit icon draw index.

◆ MapLoaded

bool CEditor::MapLoaded

Player selected for draw.

◆ PopUpX

int CEditor::PopUpX

Current editor state.

◆ PopUpY

int CEditor::PopUpY

◆ RandomTiles

std::vector<std::tuple<int, int, int> > CEditor::RandomTiles

Tile to fill the map with initially;.

◆ RandomUnits

std::vector<std::tuple<std::string, int, int, int> > CEditor::RandomUnits

other tiles to fill randomly. (tile, count, area size)

◆ Running

EditorRunningType CEditor::Running

Use compression when saving.

◆ Select

IconConfig CEditor::Select

Is the terrain editable ?

◆ SelectedPlayer

int CEditor::SelectedPlayer

Player under the cursor.

◆ SelectedTileIndex

int CEditor::SelectedTileIndex

tile icon under cursor.

◆ SelectedUnitIndex

int CEditor::SelectedUnitIndex

Unit icon under cursor.

◆ ShownTileTypes

std::vector<unsigned int> CEditor::ShownTileTypes

Shown editor unit-type table.

◆ ShownUnitTypes

std::vector<const CUnitType *> CEditor::ShownUnitTypes

Sorted editor unit-type table.

◆ StartUnit

const CUnitType* CEditor::StartUnit

name of the Unit used to display the start location.

◆ StartUnitName

std::string CEditor::StartUnitName

Editor's units icon.

◆ State

EditorStateType CEditor::State

Editor is running.

◆ TerrainEditable

bool CEditor::TerrainEditable

Shown editor tile-type table.

◆ TileIndex

int CEditor::TileIndex

Unit type to draw.

◆ UnitIndex

int CEditor::UnitIndex

Unit used to display the start location.

◆ Units

IconConfig CEditor::Units

Editor's select icon.

◆ UnitTypes

std::vector<std::string> CEditor::UnitTypes

neutral units to add randomly. (name, count, initial resources, tile under unit)

◆ WriteCompressedMaps

bool CEditor::WriteCompressedMaps

Map loaded in editor.


The documentation for this class was generated from the following files:
(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.