OpenClonk
C4GameMessage.cpp File Reference
Include dependency graph for C4GameMessage.cpp:

Go to the source code of this file.

Functions

void GameMsgObjectError (const char *szText, C4Object *pTarget, bool Red)
 

Variables

const int32_t ObjectMsgDelayFactor = 2
 
const int32_t GlobalMsgDelayFactor = 3
 
int32_t DrawMessageOffset = -35
 
int32_t PictureWidth = 64
 
int32_t PictureIndent = 10
 
C4GameMessageList Messages
 

Function Documentation

◆ GameMsgObjectError()

void GameMsgObjectError ( const char *  szText,
C4Object pTarget,
bool  Red 
)

Definition at line 451 of file C4GameMessage.cpp.

452 {
453  ::Messages.New(C4GM_TargetPlayer,szText,pTarget,pTarget->Controller,0,0, Red ? C4RGB(0xca, 0, 0) : C4RGB(0xff, 0xff, 0xff));
454 }
C4GameMessageList Messages
const int32_t C4GM_TargetPlayer
Definition: C4GameMessage.h:32
#define C4RGB(r, g, b)
Definition: StdColors.h:26
bool New(int32_t iType, const StdStrBuf &Text, C4Object *pTarget, int32_t iPlayer, int32_t iX=-1, int32_t iY=-1, uint32_t dwClr=0xffFFFFFF, C4ID idDecoID=C4ID::None, C4PropList *pSrc=nullptr, uint32_t dwFlags=0u, int32_t width=0)
int32_t Controller
Definition: C4Object.h:109

References C4GM_TargetPlayer, C4RGB, C4Object::Controller, Messages, and C4GameMessageList::New().

Referenced by ConstructionCheck(), C4Object::Lift(), ObjectComDig(), and C4Object::Push().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DrawMessageOffset

int32_t DrawMessageOffset = -35

Definition at line 117 of file C4GameMessage.cpp.

Referenced by C4GameMessage::Draw(), and C4Viewport::DrawPlayerStartup().

◆ GlobalMsgDelayFactor

const int32_t GlobalMsgDelayFactor = 3

Definition at line 30 of file C4GameMessage.cpp.

Referenced by C4GameMessage::Append(), and C4GameMessage::Init().

◆ Messages

◆ ObjectMsgDelayFactor

const int32_t ObjectMsgDelayFactor = 2

Definition at line 30 of file C4GameMessage.cpp.

Referenced by C4GameMessage::Append(), and C4GameMessage::Init().

◆ PictureIndent

int32_t PictureIndent = 10

Definition at line 119 of file C4GameMessage.cpp.

Referenced by C4GameMessage::Draw().

◆ PictureWidth

int32_t PictureWidth = 64