Adonthell 0.4
|
Displays neat little text speech bubbles. More...
#include <text_bubble.h>
Public Member Functions | |
text_bubble (const string &text, const string &textcolor, const string &themename, u_int16 len=110) | |
Constructor. | |
~text_bubble () | |
Destructor. | |
bool | update () |
Update function. | |
u_int16 | remaining () |
Returns the number of game cycles remaining before the death of this bubble. |
Displays neat little text speech bubbles.
This class makes text bubbles designed to stay visible a short amount of time (just enough to be read).
Definition at line 42 of file text_bubble.h.
text_bubble::text_bubble | ( | const string & | text, |
const string & | textcolor, | ||
const string & | themename, | ||
u_int16 | len = 110 |
||
) |
Constructor.
text | Text to display in that bubble. |
textcolor | Font to use with this bubble (directly taken from the win_manager's font collection). |
themename | Theme to use with this bubble (directly taken from the win_manager's theme collection). |
len | Basic duration (in game cycles) of this bubble. Another amount of time will be added, depending on it's length. |
Definition at line 31 of file text_bubble.cc.
text_bubble::~text_bubble | ( | ) |
Destructor.
Definition at line 53 of file text_bubble.cc.
bool text_bubble::update | ( | ) | [virtual] |
Update function.
Reimplemented from win_object< T >.
Definition at line 57 of file text_bubble.cc.
u_int16 text_bubble::remaining | ( | ) | [inline] |
Returns the number of game cycles remaining before the death of this bubble.
Definition at line 79 of file text_bubble.h.