DDraceNetwork Documentation
Loading...
Searching...
No Matches
editor.cpp File Reference
#include "editor.h"
#include "auto_map.h"
#include "editor_actions.h"
#include <base/color.h>
#include <base/log.h>
#include <base/system.h>
#include <engine/client.h>
#include <engine/engine.h>
#include <engine/gfx/image_loader.h>
#include <engine/gfx/image_manipulation.h>
#include <engine/graphics.h>
#include <engine/input.h>
#include <engine/keys.h>
#include <engine/shared/config.h>
#include <engine/storage.h>
#include <engine/textrender.h>
#include <generated/client_data.h>
#include <game/client/components/camera.h>
#include <game/client/gameclient.h>
#include <game/client/lineinput.h>
#include <game/client/ui.h>
#include <game/client/ui_listbox.h>
#include <game/client/ui_scrollregion.h>
#include <game/editor/editor_history.h>
#include <game/editor/explanations.h>
#include <game/editor/mapitems/image.h>
#include <game/editor/mapitems/sound.h>
#include <game/localization.h>
#include <algorithm>
#include <chrono>
#include <iterator>
#include <limits>
#include <type_traits>
Include dependency graph for editor.cpp:

Classes

class  CTimeStep

Functions

static void Rotate (const CPoint *pCenter, CPoint *pPoint, float Rotation)
static CColor AverageColor (const std::vector< CQuad * > &vpQuads)
static float ClampDelta (float Val, float Delta, float Min, float Max)
IEditorCreateEditor ()

Variables

static const char * VANILLA_IMAGES []

Function Documentation

◆ AverageColor()

CColor AverageColor ( const std::vector< CQuad * > & vpQuads)
static

◆ ClampDelta()

float ClampDelta ( float Val,
float Delta,
float Min,
float Max )
static

◆ CreateEditor()

IEditor * CreateEditor ( )

◆ Rotate()

void Rotate ( const CPoint * pCenter,
CPoint * pPoint,
float Rotation )
static

Variable Documentation

◆ VANILLA_IMAGES

const char* VANILLA_IMAGES[]
static
Initial value:
= {
"bg_cloud1",
"bg_cloud2",
"bg_cloud3",
"desert_doodads",
"desert_main",
"desert_mountains",
"desert_mountains2",
"desert_sun",
"generic_deathtiles",
"generic_unhookable",
"grass_doodads",
"grass_main",
"jungle_background",
"jungle_deathtiles",
"jungle_doodads",
"jungle_main",
"jungle_midground",
"jungle_unhookables",
"moon",
"mountains",
"snow",
"stars",
"sun",
"winter_doodads",
"winter_main",
"winter_mountains",
"winter_mountains2",
"winter_mountains3"}