21 #include "../Engine/Surface.h" 51 void setText(
const std::string &message);
55 void setPalette(SDL_Color *colors,
int firstcolor = 0,
int ncolors = 256);
void initText(Font *big, Font *small, Language *lang)
Initializes the Battlescape message's resources.
Definition: BattlescapeMessage.cpp:105
void setText(const std::string &message)
Sets the Battlescape message's text.
Definition: BattlescapeMessage.cpp:91
Box with a coloured border and custom background.
Definition: Window.h:40
Text string displayed on screen.
Definition: Text.h:40
Contains strings used throughout the game for localization.
Definition: Language.h:39
Takes care of loading and storing each character in a sprite font.
Definition: Font.h:46
void setX(int x)
Sets the X position of the surface.
Definition: BattlescapeMessage.cpp:60
void setBackground(Surface *background)
Sets the Battlescape message's background.
Definition: BattlescapeMessage.cpp:82
Element that is blit (rendered) onto the screen.
Definition: Surface.h:38
BattlescapeMessage(int width, int height, int x=0, int y=0)
Creates a new Battlescape message with the specified size and position.
Definition: BattlescapeMessage.cpp:34
~BattlescapeMessage()
Cleans up the Battlescape message.
Definition: BattlescapeMessage.cpp:50
Generic window used to display messages over the Battlescape map.
Definition: BattlescapeMessage.h:34
void setY(int y)
Sets the Y position of the surface.
Definition: BattlescapeMessage.cpp:71
void setTextColor(Uint8 color)
Sets the text color of the battlescape message.
Definition: BattlescapeMessage.cpp:149
void blit(Surface *surface)
Blits the warning message.
Definition: BattlescapeMessage.cpp:127
void setHeight(int height)
Special handling for setting the height of the battlescape message.
Definition: BattlescapeMessage.cpp:138
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256)
Sets the Battlescape message's palette.
Definition: BattlescapeMessage.cpp:117
Definition: BaseInfoState.cpp:40