Adonthell 0.4

text_bubble Class Reference

Displays neat little text speech bubbles. More...

#include <text_bubble.h>

Inheritance diagram for text_bubble:
Collaboration diagram for text_bubble:

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

text_bubble::text_bubble ( const string &  text,
const string &  textcolor,
const string &  themename,
u_int16  len = 110 
)

Constructor.

Parameters:
textText to display in that bubble.
textcolorFont to use with this bubble (directly taken from the win_manager's font collection).
themenameTheme to use with this bubble (directly taken from the win_manager's theme collection).
lenBasic 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.


Member Function Documentation

bool text_bubble::update ( ) [virtual]

Update function.

Returns:
false if the bubble should be destroyed now, true otherwise.

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.

Returns:
Number of game cycles remaining before the death of this bubble.

Definition at line 79 of file text_bubble.h.


The documentation for this class was generated from the following files: