OpenClonk
C4Control.h File Reference
Include dependency graph for C4Control.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4ControlPacket
 
class  C4Control
 
class  C4ControlSet
 
class  C4ControlScript
 
class  C4ControlMsgBoardReply
 
class  C4ControlMsgBoardCmd
 
class  C4ControlPlayerSelect
 
class  C4ControlPlayerControl
 
struct  C4ControlPlayerControl::ControlItem
 
class  C4ControlPlayerMouse
 
class  C4ControlMenuCommand
 
class  C4ControlPlayerAction
 
class  C4ControlSyncCheck
 
class  C4ControlSynchronize
 
class  C4ControlClientJoin
 
class  C4ControlClientUpdate
 
class  C4ControlClientRemove
 
class  C4ControlPlayerInfo
 
struct  C4ControlJoinPlayer
 
class  C4ControlEMMoveObject
 
class  C4ControlEMDrawTool
 
class  C4ControlMessage
 
class  C4ControlRemovePlr
 
class  C4ControlDebugRec
 
class  C4ControlVote
 
class  C4ControlVoteEnd
 
struct  C4ControlReInitScenario
 
class  C4ControlEditGraph
 

Macros

#define DECLARE_C4CONTROL_VIRTUALS
 

Enumerations

enum  C4CtrlValueType {
  C4CVT_None = -1 , C4CVT_ControlRate = 0 , C4CVT_DisableDebug = 1 , C4CVT_MaxPlayer = 2 ,
  C4CVT_TeamDistribution = 3 , C4CVT_TeamColors = 4
}
 
enum  C4ControlClientUpdType { CUT_None = -1 , CUT_Activate = 0 , CUT_SetObserver = 1 , CUT_SetReady = 2 }
 
enum  C4ControlEMObjectAction {
  EMMO_Move , EMMO_MoveForced , EMMO_Enter , EMMO_Duplicate ,
  EMMO_Script , EMMO_Remove , EMMO_Exit , EMMO_Create ,
  EMMO_Transform
}
 
enum  C4ControlEMDrawAction {
  EMDT_SetMode , EMDT_Brush , EMDT_Fill , EMDT_Line ,
  EMDT_Rect
}
 
enum  C4ControlMessageType {
  C4CMT_Normal = 0 , C4CMT_Me = 1 , C4CMT_Say = 2 , C4CMT_Team = 3 ,
  C4CMT_Private = 4 , C4CMT_Sound = 5 , C4CMT_Alert = 6 , C4CMT_System = 10
}
 
enum  C4ControlVoteType { VT_None = -1 , VT_Cancel , VT_Kick , VT_Pause }
 

Macro Definition Documentation

◆ DECLARE_C4CONTROL_VIRTUALS

#define DECLARE_C4CONTROL_VIRTUALS
Value:
void Execute() const override; \
void CompileFunc(StdCompiler *pComp) override;
void CompileFunc(C4Real &rValue, StdCompiler *pComp)
Definition: C4Real.cpp:9033

Definition at line 60 of file C4Control.h.

Enumeration Type Documentation

◆ C4ControlClientUpdType

Enumerator
CUT_None 
CUT_Activate 
CUT_SetObserver 
CUT_SetReady 

Definition at line 365 of file C4Control.h.

366 {
368 };
@ CUT_SetReady
Definition: C4Control.h:367
@ CUT_SetObserver
Definition: C4Control.h:367
@ CUT_None
Definition: C4Control.h:367
@ CUT_Activate
Definition: C4Control.h:367

◆ C4ControlEMDrawAction

Enumerator
EMDT_SetMode 
EMDT_Brush 
EMDT_Fill 
EMDT_Line 
EMDT_Rect 

Definition at line 475 of file C4Control.h.

476 {
477  EMDT_SetMode, // set new landscape mode
478  EMDT_Brush, // drawing tool
479  EMDT_Fill, // drawing tool
480  EMDT_Line, // drawing tool
481  EMDT_Rect // drawing tool
482 };
@ EMDT_Fill
Definition: C4Control.h:479
@ EMDT_Brush
Definition: C4Control.h:478
@ EMDT_Rect
Definition: C4Control.h:481
@ EMDT_Line
Definition: C4Control.h:480
@ EMDT_SetMode
Definition: C4Control.h:477

◆ C4ControlEMObjectAction

Enumerator
EMMO_Move 
EMMO_MoveForced 
EMMO_Enter 
EMMO_Duplicate 
EMMO_Script 
EMMO_Remove 
EMMO_Exit 
EMMO_Create 
EMMO_Transform 

Definition at line 440 of file C4Control.h.

441 {
442  EMMO_Move, // move objects by offset
443  EMMO_MoveForced,// move objects by offset and ignore HorizontalFixed
444  EMMO_Enter, // enter objects into iTargetObj
445  EMMO_Duplicate, // duplicate objects at same position; reset EditCursor
446  EMMO_Script, // execute Script
447  EMMO_Remove, // remove objects
448  EMMO_Exit, // exit objects
449  EMMO_Create, // create a new object (used by C4Game::DropDef)
450  EMMO_Transform // adjust rotation / con of selected object
451 };
@ EMMO_MoveForced
Definition: C4Control.h:443
@ EMMO_Script
Definition: C4Control.h:446
@ EMMO_Duplicate
Definition: C4Control.h:445
@ EMMO_Create
Definition: C4Control.h:449
@ EMMO_Move
Definition: C4Control.h:442
@ EMMO_Enter
Definition: C4Control.h:444
@ EMMO_Exit
Definition: C4Control.h:448
@ EMMO_Remove
Definition: C4Control.h:447
@ EMMO_Transform
Definition: C4Control.h:450

◆ C4ControlMessageType

Enumerator
C4CMT_Normal 
C4CMT_Me 
C4CMT_Say 
C4CMT_Team 
C4CMT_Private 
C4CMT_Sound 
C4CMT_Alert 
C4CMT_System 

Definition at line 505 of file C4Control.h.

506 {
507  C4CMT_Normal = 0,
508  C4CMT_Me = 1,
509  C4CMT_Say = 2,
510  C4CMT_Team = 3,
511  C4CMT_Private = 4,
512  C4CMT_Sound = 5, // "message" is played as a sound instead
513  C4CMT_Alert = 6, // no message. just flash taskbar for inactive clients.
514  C4CMT_System = 10
515 };
@ C4CMT_Normal
Definition: C4Control.h:507
@ C4CMT_Sound
Definition: C4Control.h:512
@ C4CMT_Say
Definition: C4Control.h:509
@ C4CMT_Alert
Definition: C4Control.h:513
@ C4CMT_Team
Definition: C4Control.h:510
@ C4CMT_System
Definition: C4Control.h:514
@ C4CMT_Me
Definition: C4Control.h:508
@ C4CMT_Private
Definition: C4Control.h:511

◆ C4ControlVoteType

Enumerator
VT_None 
VT_Cancel 
VT_Kick 
VT_Pause 

Definition at line 559 of file C4Control.h.

560 {
561  VT_None = -1,
562  VT_Cancel,
563  VT_Kick,
564  VT_Pause
565 };
@ VT_Pause
Definition: C4Control.h:564
@ VT_None
Definition: C4Control.h:561
@ VT_Cancel
Definition: C4Control.h:562
@ VT_Kick
Definition: C4Control.h:563

◆ C4CtrlValueType

Enumerator
C4CVT_None 
C4CVT_ControlRate 
C4CVT_DisableDebug 
C4CVT_MaxPlayer 
C4CVT_TeamDistribution 
C4CVT_TeamColors 

Definition at line 100 of file C4Control.h.

101 {
102  C4CVT_None = -1,
103  C4CVT_ControlRate = 0,
104  C4CVT_DisableDebug = 1,
105  C4CVT_MaxPlayer = 2,
107  C4CVT_TeamColors = 4,
108 };
@ C4CVT_TeamDistribution
Definition: C4Control.h:106
@ C4CVT_MaxPlayer
Definition: C4Control.h:105
@ C4CVT_None
Definition: C4Control.h:102
@ C4CVT_DisableDebug
Definition: C4Control.h:104
@ C4CVT_ControlRate
Definition: C4Control.h:103
@ C4CVT_TeamColors
Definition: C4Control.h:107