19 #ifndef OPENXCOM_BATTLESCAPEMESSAGE_H
20 #define OPENXCOM_BATTLESCAPEMESSAGE_H
23 #include "../Engine/Surface.h"
53 void setText(
const std::wstring &message);
57 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
Box with a coloured border and custom background.
Definition: Window.h:42
Text string displayed on screen.
Definition: Text.h:41
Contains strings used throughout the game for localization.
Definition: Language.h:42
Takes care of loading and storing each character in a sprite font.
Definition: Font.h:40
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
void setText(const std::wstring &message)
Sets the Battlescape message's text.
Definition: BattlescapeMessage.cpp:91
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
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:36
void setY(int y)
Sets the Y position of the surface.
Definition: BattlescapeMessage.cpp:71
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