Text_effect Class Reference

#include <effects.h>

Inheritance diagram for Text_effect:

Inheritance graph
[legend]
Collaboration diagram for Text_effect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Text_effect (const std::string &m, Game_object *it)
 Text_effect (const std::string &m, int t_x, int t_y)
virtual void handle_event (unsigned long curtime, long udata)
virtual void paint ()
int is_text (Game_object *it)

Private Member Functions

void add_dirty ()
void init ()

Private Attributes

Text_effectnext
Text_effectprev
std::string msg
Game_objectitem
Tile_coord pos
short width
short height
int num_ticks

Friends

class Effects_manager

Detailed Description

Definition at line 187 of file effects.h.


Constructor & Destructor Documentation

Text_effect::Text_effect ( const std::string &  m,
Game_object it 
)

Text_effect::Text_effect ( const std::string &  m,
int  t_x,
int  t_y 
)


Member Function Documentation

void Text_effect::add_dirty (  )  [private]

Definition at line 872 of file effects.cc.

References Game_window::add_dirty(), c_tilesize, Game_window::clip_to_win(), Game_window::get_instance(), Game_window::get_scrolltx(), Game_window::get_scrollty(), gwin, height, Tile_coord::tx, Tile_coord::ty, and width.

Here is the call graph for this function:

void Text_effect::init (  )  [private]

Definition at line 888 of file effects.cc.

References Time_queue::add(), Game_window::add_dirty(), Game_window::get_instance(), Game::get_ticks(), Game_window::get_tqueue(), gwin, height, len, and width.

Here is the call graph for this function:

void Text_effect::handle_event ( unsigned long  curtime,
long  udata 
) [virtual]

Implements Time_sensitive.

Definition at line 937 of file effects.cc.

References Time_queue::add(), Game_window::add_dirty(), Figure_text_pos(), Game_window::get_instance(), Game_window::get_std_delay(), Game::get_ticks(), Game_window::get_tqueue(), and gwin.

Here is the call graph for this function:

void Text_effect::paint (  )  [virtual]

Definition at line 968 of file effects.cc.

References c_tilesize, Game_window::get_scrolltx(), Game_window::get_scrollty(), gwin, len, Tile_coord::tx, and Tile_coord::ty.

Referenced by Effects_manager::paint_text().

Here is the call graph for this function:

int Text_effect::is_text ( Game_object it  )  [inline]

Definition at line 206 of file effects.h.

References item.


Friends And Related Function Documentation

friend class Effects_manager [friend]

Definition at line 198 of file effects.h.


Member Data Documentation

Text_effect* Text_effect::next [private]

Definition at line 189 of file effects.h.

Referenced by Effects_manager::add_text_effect(), and Effects_manager::paint_text().

Text_effect * Text_effect::prev [private]

Definition at line 189 of file effects.h.

Referenced by Effects_manager::add_text_effect().

std::string Text_effect::msg [private]

Definition at line 190 of file effects.h.

Game_object* Text_effect::item [private]

Definition at line 191 of file effects.h.

Referenced by is_text().

Tile_coord Text_effect::pos [private]

Definition at line 192 of file effects.h.

short Text_effect::width [private]

Definition at line 193 of file effects.h.

short Text_effect::height [private]

Definition at line 193 of file effects.h.

int Text_effect::num_ticks [private]

Definition at line 194 of file effects.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:04:19 2007 for ExultEngine by  doxygen 1.5.1