text_bubble Class Reference

Displays neat little text speech bubbles. More...

#include <text_bubble.h>

Inheritance diagram for text_bubble:

Inheritance graph
[legend]
Collaboration diagram for text_bubble:

Collaboration graph
[legend]

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:
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.


Member Function Documentation

bool text_bubble::update (  )  [virtual]

Update function.

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

Reimplemented from win_base.

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:

Generated on Wed Jun 18 17:03:46 2008 for Adonthell by  doxygen 1.5.6