OpenClonk
C4Def.h File Reference
#include "c4group/C4ComponentHost.h"
#include "c4group/C4LangStringTable.h"
#include "graphics/C4Facet.h"
#include "lib/C4InputValidation.h"
#include "object/C4DefGraphics.h"
#include "object/C4IDList.h"
#include "object/C4InfoCore.h"
#include "object/C4Shape.h"
#include "script/C4PropList.h"
#include "script/C4ScriptHost.h"
#include "script/C4ValueMap.h"
#include <functional>
Include dependency graph for C4Def.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4Def
 

Macros

#define C4D_Blit_Normal   0
 
#define C4D_Blit_Additive   1
 
#define C4D_Blit_ModAdd   2
 

Variables

const int32_t C4D_None = 0
 
const int32_t C4D_All = ~0
 
const int32_t C4D_StaticBack = 1<<0
 
const int32_t C4D_Structure = 1<<1
 
const int32_t C4D_Vehicle = 1<<2
 
const int32_t C4D_Living = 1<<3
 
const int32_t C4D_Object = 1<<4
 
const int32_t C4D_Goal = 1<<5
 
const int32_t C4D_Rule = 1<<6
 
const int32_t C4D_Environment = 1<<7
 
const int32_t C4D_Background = 1<<12
 
const int32_t C4D_Parallax = 1<<13
 
const int32_t C4D_MouseSelect = 1<<14
 
const int32_t C4D_Foreground = 1<<15
 
const int32_t C4D_MouseIgnore = 1<<16
 
const int32_t C4D_IgnoreFoW = 1<<17
 
const int32_t C4D_SortLimit
 
const int32_t C4Plane_Structure = 200
 
const int32_t C4D_Grab_Put = 1
 
const int32_t C4D_Grab_Get = 2
 
const int32_t C4D_Border_Sides = 1
 
const int32_t C4D_Border_Top = 2
 
const int32_t C4D_Border_Bottom = 4
 
const int32_t C4D_Border_Layer = 8
 
const int32_t C4D_Place_Surface = 0
 
const int32_t C4D_Place_Liquid = 1
 
const int32_t C4D_Place_Air = 2
 
const int32_t C4D_Place_Subsurface = 3
 
const int32_t C4D_Place_BothSurface = 4
 
const int32_t C4D_VehicleControl_None = 0
 
const int32_t C4D_VehicleControl_Outside = 1
 
const int32_t C4D_VehicleControl_Inside = 2
 
const DWORD C4D_Load_None = 0
 
const DWORD C4D_Load_Picture = 1
 
const DWORD C4D_Load_Bitmap = 2
 
const DWORD C4D_Load_Script = 4
 
const DWORD C4D_Load_Image = 32
 
const DWORD C4D_Load_Sounds = 64
 
const DWORD C4D_Load_ClonkNames = 128
 
const DWORD C4D_Load_RankNames = 256
 
const DWORD C4D_Load_RankFaces = 512
 
const DWORD C4D_Load_FE = C4D_Load_Image
 
const DWORD C4D_Load_RX = C4D_Load_Bitmap | C4D_Load_Script | C4D_Load_ClonkNames | C4D_Load_Sounds | C4D_Load_RankNames | C4D_Load_RankFaces
 
const DWORD C4D_Load_Temporary = 1024
 

Macro Definition Documentation

◆ C4D_Blit_Additive

#define C4D_Blit_Additive   1

Definition at line 95 of file C4Def.h.

◆ C4D_Blit_ModAdd

#define C4D_Blit_ModAdd   2

Definition at line 96 of file C4Def.h.

◆ C4D_Blit_Normal

#define C4D_Blit_Normal   0

Definition at line 94 of file C4Def.h.

Variable Documentation

◆ C4D_All

◆ C4D_Background

const int32_t C4D_Background = 1<<12

Definition at line 50 of file C4Def.h.

Referenced by C4Def::CompileFunc(), and C4DefScriptHost::Parse().

◆ C4D_Border_Bottom

const int32_t C4D_Border_Bottom = 4

Definition at line 67 of file C4Def.h.

Referenced by C4Object::ExecMovement(), and C4Object::VerticalBounds().

◆ C4D_Border_Layer

const int32_t C4D_Border_Layer = 8

Definition at line 68 of file C4Def.h.

Referenced by C4Object::SideBounds(), and C4Object::VerticalBounds().

◆ C4D_Border_Sides

const int32_t C4D_Border_Sides = 1

Definition at line 65 of file C4Def.h.

Referenced by C4Object::ExecMovement(), and C4Object::SideBounds().

◆ C4D_Border_Top

const int32_t C4D_Border_Top = 2

Definition at line 66 of file C4Def.h.

Referenced by C4Object::VerticalBounds().

◆ C4D_Environment

const int32_t C4D_Environment = 1<<7

Definition at line 48 of file C4Def.h.

Referenced by C4Def::CompileFunc(), and C4GameObjects::GRBroadcast().

◆ C4D_Foreground

◆ C4D_Goal

const int32_t C4D_Goal = 1<<5

◆ C4D_Grab_Get

const int32_t C4D_Grab_Get = 2

◆ C4D_Grab_Put

const int32_t C4D_Grab_Put = 1

◆ C4D_IgnoreFoW

const int32_t C4D_IgnoreFoW = 1<<17

◆ C4D_Living

const int32_t C4D_Living = 1<<3

Definition at line 43 of file C4Def.h.

Referenced by C4Def::CompileFunc(), C4Object::Init(), and C4DefScriptHost::Parse().

◆ C4D_Load_Bitmap

const DWORD C4D_Load_Bitmap = 2

Definition at line 82 of file C4Def.h.

◆ C4D_Load_ClonkNames

const DWORD C4D_Load_ClonkNames = 128

Definition at line 87 of file C4Def.h.

◆ C4D_Load_FE

const DWORD C4D_Load_FE = C4D_Load_Image

Definition at line 90 of file C4Def.h.

◆ C4D_Load_Image

const DWORD C4D_Load_Image = 32

Definition at line 85 of file C4Def.h.

◆ C4D_Load_None

const DWORD C4D_Load_None = 0

Definition at line 80 of file C4Def.h.

◆ C4D_Load_Picture

const DWORD C4D_Load_Picture = 1

Definition at line 81 of file C4Def.h.

◆ C4D_Load_RankFaces

const DWORD C4D_Load_RankFaces = 512

Definition at line 89 of file C4Def.h.

◆ C4D_Load_RankNames

const DWORD C4D_Load_RankNames = 256

Definition at line 88 of file C4Def.h.

◆ C4D_Load_RX

◆ C4D_Load_Script

const DWORD C4D_Load_Script = 4

Definition at line 83 of file C4Def.h.

Referenced by c4_mapgen_handle_set_map_library().

◆ C4D_Load_Sounds

const DWORD C4D_Load_Sounds = 64

Definition at line 86 of file C4Def.h.

◆ C4D_Load_Temporary

const DWORD C4D_Load_Temporary = 1024

Definition at line 92 of file C4Def.h.

◆ C4D_MouseIgnore

const int32_t C4D_MouseIgnore = 1<<16

Definition at line 54 of file C4Def.h.

Referenced by C4Def::CompileFunc(), and C4Game::FindVisObject().

◆ C4D_MouseSelect

const int32_t C4D_MouseSelect = 1<<14

◆ C4D_None

const int32_t C4D_None = 0

Definition at line 38 of file C4Def.h.

Referenced by C4Def::CompileFunc().

◆ C4D_Object

const int32_t C4D_Object = 1<<4

Definition at line 44 of file C4Def.h.

Referenced by C4Def::CompileFunc(), C4GameObjects::CrossCheck(), and C4DefScriptHost::Parse().

◆ C4D_Parallax

const int32_t C4D_Parallax = 1<<13

◆ C4D_Place_Air

const int32_t C4D_Place_Air = 2

Definition at line 72 of file C4Def.h.

Referenced by C4Game::PlaceAnimal().

◆ C4D_Place_BothSurface

const int32_t C4D_Place_BothSurface = 4

Definition at line 74 of file C4Def.h.

◆ C4D_Place_Liquid

const int32_t C4D_Place_Liquid = 1

Definition at line 71 of file C4Def.h.

Referenced by C4Game::PlaceAnimal().

◆ C4D_Place_Subsurface

const int32_t C4D_Place_Subsurface = 3

Definition at line 73 of file C4Def.h.

◆ C4D_Place_Surface

const int32_t C4D_Place_Surface = 0

Definition at line 70 of file C4Def.h.

Referenced by C4Game::PlaceAnimal(), and C4Game::PlaceVegetation().

◆ C4D_Rule

const int32_t C4D_Rule = 1<<6

◆ C4D_SortLimit

const int32_t C4D_SortLimit
Initial value:
const int32_t C4D_Foreground
Definition: C4Def.h:53
const int32_t C4D_Background
Definition: C4Def.h:50
const int32_t C4D_Structure
Definition: C4Def.h:41
const int32_t C4D_Living
Definition: C4Def.h:43
const int32_t C4D_StaticBack
Definition: C4Def.h:40
const int32_t C4D_Object
Definition: C4Def.h:44
const int32_t C4D_Vehicle
Definition: C4Def.h:42

Definition at line 57 of file C4Def.h.

Referenced by C4DefScriptHost::Parse().

◆ C4D_StaticBack

◆ C4D_Structure

const int32_t C4D_Structure = 1<<1

Definition at line 41 of file C4Def.h.

Referenced by C4Def::CompileFunc(), and C4DefScriptHost::Parse().

◆ C4D_Vehicle

const int32_t C4D_Vehicle = 1<<2

Definition at line 42 of file C4Def.h.

Referenced by C4Def::CompileFunc(), and C4DefScriptHost::Parse().

◆ C4D_VehicleControl_Inside

const int32_t C4D_VehicleControl_Inside = 2

Definition at line 78 of file C4Def.h.

Referenced by C4Object::SetCommand().

◆ C4D_VehicleControl_None

const int32_t C4D_VehicleControl_None = 0

Definition at line 76 of file C4Def.h.

◆ C4D_VehicleControl_Outside

const int32_t C4D_VehicleControl_Outside = 1

Definition at line 77 of file C4Def.h.

Referenced by C4Object::SetCommand().

◆ C4Plane_Structure

const int32_t C4Plane_Structure = 200

Definition at line 60 of file C4Def.h.

Referenced by C4DefScriptHost::Parse().