OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

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

Definition at line 451 of file C4GameMessage.cpp.

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

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

452 {
453  ::Messages.New(C4GM_TargetPlayer,szText,pTarget,pTarget->Controller,0,0, Red ? C4RGB(0xca, 0, 0) : C4RGB(0xff, 0xff, 0xff));
454 }
const int32_t C4GM_TargetPlayer
Definition: C4GameMessage.h:32
#define C4RGB(r, g, b)
Definition: StdColors.h:26
C4GameMessageList Messages
int32_t Controller
Definition: C4Object.h:111
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)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int32_t DrawMessageOffset = -35

Definition at line 117 of file C4GameMessage.cpp.

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

const int32_t GlobalMsgDelayFactor = 3

Definition at line 30 of file C4GameMessage.cpp.

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

const int32_t ObjectMsgDelayFactor = 2

Definition at line 30 of file C4GameMessage.cpp.

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

int32_t PictureIndent = 10

Definition at line 119 of file C4GameMessage.cpp.

Referenced by C4GameMessage::Draw().

int32_t PictureWidth = 64