DDraceNetwork Docs
editor.cpp File Reference
#include <algorithm>
#include <base/color.h>
#include <base/system.h>
#include <pthread.h>
#include <engine/client.h>
#include <engine/console.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/shared/filecollection.h>
#include <engine/storage.h>
#include <engine/textrender.h>
#include <game/client/components/camera.h>
#include <game/client/gameclient.h>
#include <game/client/lineinput.h>
#include <game/client/render.h>
#include <game/client/ui.h>
#include <game/client/ui_listbox.h>
#include <game/client/ui_scrollregion.h>
#include <game/generated/client_data.h>
#include <game/localization.h>
#include <game/editor/editor_history.h>
#include <game/editor/mapitems/image.h>
#include <game/editor/mapitems/sound.h>
#include "auto_map.h"
#include "editor.h"
#include "editor_actions.h"
#include <chrono>
#include <iterator>
#include <limits>
#include <type_traits>
Include dependency graph for editor.cpp:

Classes

class  CTimeStep
 

Enumerations

enum  { BUTTON_CONTEXT = 1 }
 

Functions

static void Rotate (const CPoint *pCenter, CPoint *pPoint, float Rotation)
 
static int EditorListdirCallback (const CFsFileInfo *pInfo, int IsDir, int StorageType, void *pUser)
 
float fxt2f (int t)
 
int f2fxt (float t)
 
static float ClampDelta (float Val, float Delta, float Min, float Max)
 
IEditorCreateEditor ()
 

Variables

static const char * VANILLA_IMAGES []
 
static const char * FILETYPE_EXTENSIONS [CEditor::NUM_FILETYPES]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BUTTON_CONTEXT 

Function Documentation

◆ ClampDelta()

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

◆ CreateEditor()

IEditor * CreateEditor ( )

◆ EditorListdirCallback()

static int EditorListdirCallback ( const CFsFileInfo pInfo,
int  IsDir,
int  StorageType,
void *  pUser 
)
static

◆ f2fxt()

int f2fxt ( float  t)

◆ fxt2f()

float fxt2f ( int  t)

◆ Rotate()

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

Variable Documentation

◆ FILETYPE_EXTENSIONS

const char* FILETYPE_EXTENSIONS[CEditor::NUM_FILETYPES]
static
Initial value:
= {
".map",
".png",
".opus"}

◆ 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"}