#include <C4GameMessage.h>
Public Member Functions | |
void | Draw (C4TargetFacet &cgo, int32_t iPlayer) |
C4GameMessage () | |
~C4GameMessage () | |
int32_t | GetPositioningFlags () const |
Protected Member Functions | |
void | Init (int32_t iType, const StdStrBuf &Text, C4Object *pTarget, int32_t iPlayer, int32_t iX, int32_t iY, uint32_t dwCol, C4ID idDecoID, C4PropList *pSrc, uint32_t dwFlags, int width) |
void | Append (const char *szText, bool fNoDuplicates=false) |
bool | Execute () |
const char * | WordWrap (int32_t iMaxWidth) |
void | UpdateDef (C4ID idUpdDef) |
Protected Attributes | |
int32_t | X |
int32_t | Y |
int32_t | Wdt |
int32_t | Hgt |
int32_t | Delay |
DWORD | ColorDw |
int32_t | Player |
int32_t | Type |
C4Object * | Target |
StdCopyStrBuf | Text |
C4GameMessage * | Next |
C4ID | DecoID |
C4PropList * | PictureDef |
C4Value | PictureDefVal |
C4GUI::FrameDecoration * | pFrameDeco {nullptr} |
uint32_t | dwFlags |
Friends | |
class | C4GameMessageList |
Definition at line 50 of file C4GameMessage.h.
|
default |
C4GameMessage::~C4GameMessage | ( | ) |
|
protected |
Definition at line 96 of file C4GameMessage.cpp.
References StdStrBuf::AppendFormat(), Delay, StdStrBuf::getData(), GlobalMsgDelayFactor, ObjectMsgDelayFactor, SAdvancePast(), SEqual2(), SLen(), Target, and Text.
Referenced by C4GameMessageList::Append().
void C4GameMessage::Draw | ( | C4TargetFacet & | cgo, |
int32_t | iPlayer | ||
) |
Definition at line 121 of file C4GameMessage.cpp.
References ACenter, ALeft, ARight, CStdFont::BreakMessage(), C4GM_Bottom, C4GM_Global, C4GM_GlobalPlayer, C4GM_HCenter, C4GM_Left, C4GM_NoBreak, C4GM_Right, C4GM_Target, C4GM_TargetPlayer, C4GM_Top, C4GM_VCenter, C4GM_WidthRel, C4GM_XRel, C4GM_YRel, C4GM_Zoom, ColorDw, C4Object::Def, C4Def::Draw(), C4GUI::FrameDecoration::Draw(), DrawMessageOffset, C4Object::DrawPicture(), C4Game::DrawPropListSpecImage(), dwFlags, C4GraphicsResource::FontRegular, Game, StdStrBuf::getData(), C4PropList::GetDef(), C4Object::GetDrawPosition(), C4PropList::GetObject(), CStdFont::GetTextExtent(), CStdFont::GetTextWidth(), GraphicsResource, C4Facet::Hgt, Hgt, C4Rect::Hgt, C4GUI::FrameDecoration::iBorderBottom, C4GUI::FrameDecoration::iBorderLeft, C4GUI::FrameDecoration::iBorderRight, C4GUI::FrameDecoration::iBorderTop, C4Object::IsVisible(), pDraw, pFrameDeco, PictureDef, PictureIndent, PictureWidth, Player, StdStrBuf::Ref(), C4Def::Shape, C4Facet::Surface, Target, C4TargetFacet::TargetX, C4TargetFacet::TargetY, Text, C4Draw::TextOut(), Type, C4Facet::Wdt, Wdt, C4Rect::Wdt, C4Facet::X, X, C4Rect::x, C4Facet::Y, Y, C4Rect::y, and C4TargetFacet::Zoom.
Referenced by C4GameMessageList::Draw().
|
protected |
Definition at line 108 of file C4GameMessage.cpp.
References Delay.
Referenced by C4GameMessageList::Execute().
|
inline |
Definition at line 79 of file C4GameMessage.h.
References C4GM_PositioningFlags, and dwFlags.
Referenced by C4GameMessageList::ClearPlayers().
|
protected |
Definition at line 39 of file C4GameMessage.cpp.
References C4GM_MinDelay, ColorDw, StdStrBuf::Copy(), DecoID, Delay, dwFlags, C4PropList::GetDef(), C4Value::getInt(), StdStrBuf::getLength(), C4PropList::GetObject(), C4PropList::GetProperty(), C4PropList::GetPropertyPropList(), GlobalMsgDelayFactor, Hgt, StdStrBuf::Move(), ObjectMsgDelayFactor, P_Hgt, P_Source, P_Wdt, pFrameDeco, PictureDef, PictureDefVal, Player, C4Value::Set0(), C4GUI::FrameDecoration::SetByDef(), C4Value::SetPropList(), StdStrBuf::Shrink(), C4PropList::Status, Target, Text, Type, Wdt, X, and Y.
Referenced by C4GameMessageList::New().
|
protected |
Definition at line 298 of file C4GameMessage.cpp.
References pFrameDeco, and C4GUI::FrameDecoration::UpdateGfx().
Referenced by C4GameMessageList::UpdateDef().
|
protected |
|
friend |
Definition at line 52 of file C4GameMessage.h.
|
protected |
Definition at line 60 of file C4GameMessage.h.
|
protected |
Definition at line 66 of file C4GameMessage.h.
Referenced by Init().
|
protected |
Definition at line 59 of file C4GameMessage.h.
|
protected |
Definition at line 70 of file C4GameMessage.h.
Referenced by Draw(), GetPositioningFlags(), and Init().
|
protected |
Definition at line 58 of file C4GameMessage.h.
|
protected |
Definition at line 65 of file C4GameMessage.h.
Referenced by C4GameMessageList::Append(), C4GameMessageList::Clear(), C4GameMessageList::ClearPlayers(), C4GameMessageList::ClearPointers(), C4GameMessageList::Draw(), C4GameMessageList::Execute(), C4GameMessageList::New(), and C4GameMessageList::UpdateDef().
|
protected |
Definition at line 69 of file C4GameMessage.h.
Referenced by Draw(), Init(), UpdateDef(), and ~C4GameMessage().
|
protected |
Definition at line 67 of file C4GameMessage.h.
|
protected |
Definition at line 68 of file C4GameMessage.h.
Referenced by Init().
|
protected |
Definition at line 61 of file C4GameMessage.h.
Referenced by C4GameMessageList::Append(), C4GameMessageList::ClearPlayers(), Draw(), and Init().
|
protected |
Definition at line 63 of file C4GameMessage.h.
Referenced by Append(), C4GameMessageList::Append(), C4GameMessageList::ClearPointers(), Draw(), C4GameMessageList::Draw(), and Init().
|
protected |
Definition at line 64 of file C4GameMessage.h.
|
protected |
Definition at line 62 of file C4GameMessage.h.
Referenced by C4GameMessageList::ClearPlayers(), Draw(), C4GameMessageList::Draw(), and Init().
|
protected |
Definition at line 58 of file C4GameMessage.h.
|
protected |
Definition at line 58 of file C4GameMessage.h.
|
protected |
Definition at line 58 of file C4GameMessage.h.