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

CEditor Class Reference

#include <editor.h>

List of all members.


Public Member Functions

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

Public Attributes

std::vector< std::string > UnitTypes
std::vector< const CUnitType * > ShownUnitTypes
 Sorted editor unit-type table.
std::vector< unsigned int > ShownTileTypes
 Shown editor unit-type table.
bool TerrainEditable
 Shown editor tile-type table.
IconConfig Select
 Is the terrain editable ?
IconConfig Units
 Editor's select icon.
std::string StartUnitName
 Editor's units icon.
const CUnitTypeStartUnit
 name of the Unit used to display the start location.
int UnitIndex
 Unit used to display the start location.
int CursorUnitIndex
 Unit icon draw index.
int SelectedUnitIndex
 Unit icon under cursor.
int TileIndex
 Unit type to draw.
int CursorTileIndex
 tile icon draw index.
int SelectedTileIndex
 tile icon under cursor.
int CursorPlayer
 tile type to draw.
int SelectedPlayer
 Player under the cursor.
bool MapLoaded
 Player selected for draw.
bool WriteCompressedMaps
 Map loaded in editor.
EditorRunningType Running
 Use compression when saving.
EditorStateType State
 Editor is running.
int PopUpX
 Current editor state.
int PopUpY

Constructor & Destructor Documentation

CEditor::CEditor (  )  [inline]

CEditor::~CEditor (  )  [inline]


Member Function Documentation

void CEditor::Init (  ) 

Create editor.

void CEditor::CreateRandomMap (  )  const

Make random map.

Create a random map


Member Data Documentation

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

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

Sorted editor unit-type table.

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

Shown editor unit-type table.

Shown editor tile-type table.

Is the terrain editable ?

Editor's select icon.

Editor's units icon.

name of the Unit used to display the start location.

Unit used to display the start location.

Unit icon draw index.

Unit icon under cursor.

Unit type to draw.

tile icon draw index.

tile icon under cursor.

tile type to draw.

Player under the cursor.

Player selected for draw.

Map loaded in editor.

Use compression when saving.

Editor is running.

Current editor state.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.