Logo Search packages:      
Sourcecode: fillets-ng version File versions

SubTitleAgent Class Reference

#include <SubTitleAgent.h>

Inheritance diagram for SubTitleAgent:

BaseAgent Drawable NoCopy BaseListener NoCopy INamed

List of all members.

Detailed Description

Subtitles manager.

Definition at line 19 of file SubTitleAgent.h.

Public Types

typedef std::deque< Title * > t_titles

Public Member Functions

void addFont (const std::string &fontname, Color *new_color)
virtual void drawOn (SDL_Surface *screen)
int getLimitY () const
virtual const char * getName () const =0
void init ()
bool isInitialized ()
void killTalks ()
void newSubtitle (const std::string &subtitle, const std::string &fontname)
virtual void receiveInt (const IntMsg *msg)
virtual void receiveSimple (const SimpleMsg *msg)
virtual void receiveString (const StringMsg *msg)
void removeAll ()
void setLimitY (int limitY)
void shutdown ()
void update ()

Public Attributes

int m_limitY
t_titles m_titles

Static Public Attributes

static const int TITLE_BASE = 20
static const int TITLE_BORDER = 20
static const int TITLE_LIMIT_Y = TITLE_BASE + 5 * TITLE_ROW
static const int TITLE_ROW = 26
static const int TITLE_SPEED = 2

Protected Member Functions

virtual void own_init ()
virtual void own_shutdown ()
virtual void own_update ()
void registerWatcher (const std::string &param)

Private Member Functions

 AGENT (SubTitleAgent, Name::SUBTITLE_NAME)
int lowestY ()
void newShortSubtitle (const std::string &subtitle, const Color *color)
void shiftFinalsUp (int rate)
void shiftTitlesUp (int rate)
std::string splitAndCreate (const std::string &subtitle, const Color *color)
void trimRest (std::string &buffer)

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

Generated by  Doxygen 1.6.0   Back to index