OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Constants.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define C4GRI_SCENARIO   0
 
#define C4GRI_SEASON   1
 
#define C4GRI_RESERVED1   2
 
#define C4GRI_DAYTIME   3
 
#define C4GRI_RESERVED2   4
 
#define C4GRI_LIGHTNING   5
 
#define C4GRI_MAGIC   6
 
#define C4GRI_RESERVED3   7
 
#define C4GRI_USER   8
 

Enumerations

enum  C4LeagueDisconnectReason { C4LDR_Unknown, C4LDR_ConnectionFailed, C4LDR_Desync }
 
enum  C4PlayerType { C4PT_None = 0, C4PT_User = 1, C4PT_Script = 2 }
 
enum  C4AllowPictureStack { APS_Color = 1<<0, APS_Graphics = 1<<1, APS_Name = 1<<2, APS_Overlay = 1<<3 }
 

Variables

const size_t C4MaxTitle = 512
 
const int C4MaxDefString = 100
 
const int C4MaxMessage = 256
 
const int C4RetireDelay = 60
 
const int C4MaxKey = 12
 
const int C4MaxKeyboardSet = 4
 
const int C4MaxControlSet = C4MaxKeyboardSet+4
 
const int C4MaxControlRate = 20
 
const int C4MaxGammaUserRamps = 8
 
const int C4MaxGammaRamps = C4MaxGammaUserRamps+1
 
const int C4M_MaxName = 15
 
const int C4M_MaxDefName = 2*C4M_MaxName+1
 
const int C4M_MaxTexIndex = 255
 
const int C4S_MaxPlayer = 4
 
const int C4D_MaxVertex = 30
 
const int C4SymbolSize = 35
 
const int C4UpperBoardHeight = 50
 
const int C4PictureSize = 64
 
const int C4MaxBigIconSize = 64
 
const int C4P_MaxPosition = 4
 
const int C4ViewportScrollBorder = 40
 
const int C4XRV_Completed = 0
 
const int C4XRV_Failure = 1
 
const int C4XRV_Aborted = 2
 
const uint32_t OCF_None = 0
 
const uint32_t OCF_All = ~OCF_None
 
const uint32_t OCF_Normal = 1
 
const uint32_t OCF_Construct = 1<<1
 
const uint32_t OCF_Grab = 1<<2
 
const uint32_t OCF_Carryable = 1<<3
 
const uint32_t OCF_OnFire = 1<<4
 
const uint32_t OCF_HitSpeed1 = 1<<5
 
const uint32_t OCF_FullCon = 1<<6
 
const uint32_t OCF_Inflammable = 1<<7
 
const uint32_t OCF_Rotate = 1<<9
 
const uint32_t OCF_Exclusive = 1<<10
 
const uint32_t OCF_Entrance = 1<<11
 
const uint32_t OCF_HitSpeed2 = 1<<12
 
const uint32_t OCF_HitSpeed3 = 1<<13
 
const uint32_t OCF_Collection = 1<<14
 
const uint32_t OCF_HitSpeed4 = 1<<16
 
const uint32_t OCF_AttractLightning = 1<<17
 
const uint32_t OCF_NotContained = 1<<18
 
const uint32_t OCF_CrewMember = 1<<19
 
const uint32_t OCF_InLiquid = 1<<20
 
const uint32_t OCF_InSolid = 1<<21
 
const uint32_t OCF_InFree = 1<<22
 
const uint32_t OCF_Available = 1<<23
 
const uint32_t OCF_Container = 1<<24
 
const uint32_t OCF_Alive = 1<<25
 
const BYTE CNAT_None = 0
 
const BYTE CNAT_Left = 1
 
const BYTE CNAT_Right = 2
 
const BYTE CNAT_Top = 4
 
const BYTE CNAT_Bottom = 8
 
const BYTE CNAT_Center = 16
 
const BYTE CNAT_MultiAttach = 32
 
const BYTE CNAT_NoCollision = 64
 
const BYTE CNAT_PhaseHalfVehicle = 128
 
const BYTE CNAT_Flags = CNAT_MultiAttach | CNAT_NoCollision | CNAT_PhaseHalfVehicle
 
const BYTE COM_MenuEnter = 38
 
const BYTE COM_MenuEnterAll = 39
 
const BYTE COM_MenuClose = 40
 
const BYTE COM_MenuShowText = 42
 
const BYTE COM_MenuLeft = 52
 
const BYTE COM_MenuRight = 53
 
const BYTE COM_MenuUp = 54
 
const BYTE COM_MenuDown = 55
 
const BYTE COM_MenuSelect = 60
 
const int NO_OWNER = -1
 
const int ANY_OWNER = -2
 
const int32_t C4M_Vehicle = 100
 
const int32_t C4M_Solid = 50
 
const int32_t C4M_SemiSolid = 25
 
const int32_t C4M_Liquid = 25
 
const int32_t C4M_Background = 0
 
const int32_t MNone = -1
 
const int32_t FullCon = 100000
 

Macro Definition Documentation

#define C4GRI_DAYTIME   3

Definition at line 41 of file C4Constants.h.

#define C4GRI_LIGHTNING   5

Definition at line 43 of file C4Constants.h.

#define C4GRI_MAGIC   6

Definition at line 44 of file C4Constants.h.

#define C4GRI_RESERVED1   2

Definition at line 40 of file C4Constants.h.

#define C4GRI_RESERVED2   4

Definition at line 42 of file C4Constants.h.

#define C4GRI_RESERVED3   7

Definition at line 45 of file C4Constants.h.

#define C4GRI_SCENARIO   0

Definition at line 38 of file C4Constants.h.

#define C4GRI_SEASON   1

Definition at line 39 of file C4Constants.h.

Referenced by C4Weather::SetSeasonGamma().

#define C4GRI_USER   8

Definition at line 46 of file C4Constants.h.

Enumeration Type Documentation

Enumerator
APS_Color 
APS_Graphics 
APS_Name 
APS_Overlay 

Definition at line 161 of file C4Constants.h.

162 {
163  APS_Color = 1<<0,
164  APS_Graphics = 1<<1,
165  APS_Name = 1<<2,
166  APS_Overlay = 1<<3
167 };
Enumerator
C4LDR_Unknown 
C4LDR_ConnectionFailed 
C4LDR_Desync 

Definition at line 143 of file C4Constants.h.

Enumerator
C4PT_None 
C4PT_User 
C4PT_Script 

Definition at line 152 of file C4Constants.h.

153 {
154  C4PT_None = 0,
155  C4PT_User = 1, // Normal player
156  C4PT_Script = 2 // AI players, etc.
157 };

Variable Documentation

const int C4D_MaxVertex = 30

Definition at line 55 of file C4Constants.h.

Referenced by C4Shape::AddVertex(), and C4Shape::InsertVertex().

const int32_t C4M_Background = 0

Definition at line 176 of file C4Constants.h.

const int32_t C4M_Liquid = 25

Definition at line 175 of file C4Constants.h.

Referenced by DensityLiquid(), FindTunnelHeight(), ObjectComJump(), and SimFlightHitsLiquid().

const int C4M_MaxDefName = 2*C4M_MaxName+1

Definition at line 50 of file C4Constants.h.

const int32_t C4M_SemiSolid = 25

Definition at line 174 of file C4Constants.h.

Referenced by DensitySemiSolid().

const int32_t C4M_Vehicle = 100
const int C4MaxBigIconSize = 64

Definition at line 61 of file C4Constants.h.

const int C4MaxControlRate = 20

Definition at line 33 of file C4Constants.h.

Referenced by C4GameControl::Default().

const int C4MaxControlSet = C4MaxKeyboardSet+4

Definition at line 32 of file C4Constants.h.

Referenced by C4StartupPlrPropertiesDlg::C4StartupPlrPropertiesDlg().

const int C4MaxDefString = 100

Definition at line 27 of file C4Constants.h.

const int C4MaxGammaRamps = C4MaxGammaUserRamps+1

Definition at line 35 of file C4Constants.h.

Referenced by C4Weather::CompileFunc().

const int C4MaxGammaUserRamps = 8

Definition at line 34 of file C4Constants.h.

Referenced by C4Game::SetDefaultGamma().

const int C4MaxKey = 12

Definition at line 30 of file C4Constants.h.

const int C4MaxKeyboardSet = 4

Definition at line 31 of file C4Constants.h.

const int C4MaxMessage = 256
const int C4P_MaxPosition = 4

Definition at line 63 of file C4Constants.h.

Referenced by C4Player::ScenarioInit().

const int C4PictureSize = 64

Definition at line 60 of file C4Constants.h.

Referenced by C4Object::ActivateMenu(), and C4Menu::InitLocation().

const int C4RetireDelay = 60

Definition at line 29 of file C4Constants.h.

Referenced by C4Player::Eliminate(), and C4Player::Surrender().

const int C4S_MaxPlayer = 4
const int C4ViewportScrollBorder = 40

Definition at line 65 of file C4Constants.h.

Referenced by C4Viewport::AdjustPosition(), and C4Player::ScrollView().

const int C4XRV_Aborted = 2

Definition at line 72 of file C4Constants.h.

Referenced by main().

const int C4XRV_Completed = 0

Definition at line 70 of file C4Constants.h.

Referenced by main().

const int C4XRV_Failure = 1

Definition at line 71 of file C4Constants.h.

Referenced by main().

const BYTE CNAT_Center = 16

Definition at line 120 of file C4Constants.h.

Referenced by C4Shape::Attach().

const BYTE CNAT_MultiAttach = 32

Definition at line 116 of file C4Constants.h.

Referenced by C4Shape::CompileFunc().

const BYTE CNAT_PhaseHalfVehicle = 128

Definition at line 118 of file C4Constants.h.

Referenced by C4Shape::CompileFunc().

const BYTE COM_MenuClose = 40

Definition at line 127 of file C4Constants.h.

Referenced by C4Menu::Control(), and C4Game::InitKeyboard().

const BYTE COM_MenuDown = 55

Definition at line 132 of file C4Constants.h.

Referenced by C4Menu::Control(), and C4Game::InitKeyboard().

const BYTE COM_MenuEnter = 38

Definition at line 125 of file C4Constants.h.

Referenced by C4Menu::Control(), and C4Game::InitKeyboard().

const BYTE COM_MenuEnterAll = 39

Definition at line 126 of file C4Constants.h.

Referenced by C4Menu::Control().

const BYTE COM_MenuLeft = 52

Definition at line 129 of file C4Constants.h.

Referenced by C4Menu::Control(), and C4Game::InitKeyboard().

const BYTE COM_MenuRight = 53

Definition at line 130 of file C4Constants.h.

Referenced by C4Menu::Control(), and C4Game::InitKeyboard().

const BYTE COM_MenuSelect = 60

Definition at line 133 of file C4Constants.h.

Referenced by C4Menu::Control().

const BYTE COM_MenuShowText = 42

Definition at line 128 of file C4Constants.h.

Referenced by C4Menu::Control().

const BYTE COM_MenuUp = 54

Definition at line 131 of file C4Constants.h.

Referenced by C4Menu::Control(), and C4Game::InitKeyboard().

const int NO_OWNER = -1

Definition at line 138 of file C4Constants.h.

Referenced by C4FullScreen::ActivateMenuMain(), C4MainMenu::ActivateObserver(), C4Landscape::P::BlastMaterial2Objects(), C4PlayerControl::Clear(), C4Player::ClearControl(), C4ScriptGuiWindow::Close(), C4ViewportList::CloseViewport(), C4SortObjectValue::CompareGetValue(), C4Object::CompileFunc(), C4SoundInstance::Create(), C4Game::CreateInfoObject(), C4Game::CreateObjectConstruction(), C4MainMenu::Default(), C4MouseControl::Default(), C4Object::Default(), C4Landscape::P::DigMaterial2Objects(), C4Game::DoKeyboardInput(), C4MainMenu::DoRefillInternal(), C4ObjectMenu::DoRefillInternal(), C4GraphicsSystem::DoSaveScreenshot(), C4EditCursor::Draw(), C4Game::DrawCrewOverheadText(), C4Menu::DrawElement(), C4Viewport::EnableFoW(), C4RoundResults::EvaluateGame(), C4Object::ExecAction(), C4Object::ExecLife(), C4Viewport::Execute(), C4Command::Fail(), C4Player::FindNewOwner(), C4ViewportList::FreeScroll(), GameMsgObject(), GameMsgObjectDw(), C4ObjectMenu::GetControllingPlayer(), C4Menu::GetControllingPlayer(), C4ViewportList::GetViewport(), C4Menu::HasMouse(), C4ViewportWindow::Init(), C4Viewport::Init(), C4Player::Init(), C4Object::Init(), C4Console::InitGame(), C4FindObjectOwner::IsImpossible(), C4FindObjectController::IsImpossible(), C4MouseControl::IsPassive(), C4Object::IsPlayerObject(), C4Object::IsVisible(), C4MainMenu::MenuCommand(), C4ScriptGuiWindow::MouseEnter(), C4ScriptGuiWindow::MouseInput(), C4ScriptGuiWindow::MouseLeave(), C4MouseControl::Move(), C4MaterialMap::mrfIncinerate(), C4Viewport::NextPlayer(), C4Game::PlaceAnimal(), C4Game::PlaceInEarth(), C4Game::PlaceVegetation(), C4MessageInput::ProcessCommand(), C4ScriptGuiWindow::ProcessMouseInput(), C4GameObjects::ResetAudibility(), C4Game::SetGlobalSoundModifier(), C4ControlPlayerAction::SetHostility(), C4Object::SetOwner(), C4SoundInstance::SetVolumeByPos(), C4Viewport::SetZoom(), C4Object::ValidateOwner(), C4FullScreen::ViewportCheck(), C4Console::ViewportNew(), and C4ViewportList::ViewportNextPlayer().

const uint32_t OCF_Alive = 1<<25

Definition at line 104 of file C4Constants.h.

Referenced by C4GameObjects::CrossCheck(), C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_All = ~OCF_None

Definition at line 78 of file C4Constants.h.

Referenced by C4Command::Grab().

const uint32_t OCF_AttractLightning = 1<<17

Definition at line 96 of file C4Constants.h.

Referenced by C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_Available = 1<<23

Definition at line 102 of file C4Constants.h.

Referenced by C4Command::Acquire(), C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_Carryable = 1<<3
const uint32_t OCF_Construct = 1<<1

Definition at line 80 of file C4Constants.h.

Referenced by C4Object::DrawTopFace(), C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_Container = 1<<24

Definition at line 103 of file C4Constants.h.

Referenced by C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_Exclusive = 1<<10
const uint32_t OCF_FullCon = 1<<6
const uint32_t OCF_Grab = 1<<2

Definition at line 81 of file C4Constants.h.

Referenced by C4Object::Push(), C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_HitSpeed1 = 1<<5
const uint32_t OCF_HitSpeed3 = 1<<13
const uint32_t OCF_HitSpeed4 = 1<<16

Definition at line 95 of file C4Constants.h.

Referenced by C4Object::ContactAction(), C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_Inflammable = 1<<7

Definition at line 86 of file C4Constants.h.

Referenced by C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_InFree = 1<<22

Definition at line 101 of file C4Constants.h.

Referenced by C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_InLiquid = 1<<20

Definition at line 99 of file C4Constants.h.

Referenced by C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_InSolid = 1<<21
const uint32_t OCF_None = 0

Definition at line 77 of file C4Constants.h.

Referenced by C4GameObjects::CrossCheck().

const uint32_t OCF_Normal = 1

Definition at line 79 of file C4Constants.h.

Referenced by C4Command::Get(), C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_NotContained = 1<<18
const uint32_t OCF_OnFire = 1<<4

Definition at line 83 of file C4Constants.h.

Referenced by C4Object::SetOCF(), and C4Object::UpdateOCF().

const uint32_t OCF_Rotate = 1<<9

Definition at line 88 of file C4Constants.h.

Referenced by C4Object::DoMovement(), C4Object::SetOCF(), and C4Object::UpdateOCF().