credit Class Reference

#include <credit.h>

Inheritance diagram for credit:
base

List of all members.

Public Member Functions

 credit ()
 ~credit ()
int init (coeur *, IGUIEnvironment *, IXMLReader *)
int update ()
 Updating(should be call on each loop).
int close ()
 Close the base.
int start ()
int stop ()
int addLogo (stringc)
int addText (stringw)
bool OnEvent (const SEvent &)

Private Attributes

IGUIEnvironment * env
IGUIFont * mainFont
bool activate
int newY
int y
stringc sound
std::vector< IGUIImage * > * logos
std::vector< IGUIStaticText * > * texts

Detailed Description

Definition at line 2 of file credit.h.


Constructor & Destructor Documentation

credit::credit (  ) 

Definition at line 3 of file credit.cpp.

References logos, and texts.

credit::~credit (  ) 

Definition at line 9 of file credit.cpp.

References logos, and texts.


Member Function Documentation

int credit::addLogo ( stringc  path  ) 

Definition at line 127 of file credit.cpp.

References activate, env, coeur::getDim(), coeur::getTexture(), base::log(), logos, base::mycore, and newY.

Referenced by BOOST_PYTHON_MODULE(), and init().

int credit::addText ( stringw  text  ) 

Definition at line 143 of file credit.cpp.

References activate, env, coeur::getDim(), base::log(), base::mycore, newY, and texts.

Referenced by BOOST_PYTHON_MODULE(), and init().

int credit::close (  )  [virtual]

Close the base.

Close the log and put base::initialize to false

Returns:
logger::closeFile()

Reimplemented from base.

Definition at line 78 of file credit.cpp.

References base::log(), logos, stop(), and texts.

Referenced by coeur::close().

int credit::init ( coeur c,
IGUIEnvironment *  e,
IXMLReader *  xmlCredit 
)

Definition at line 15 of file credit.cpp.

References activate, addLogo(), addText(), env, coeur::getDim(), base::log(), logos, newY, sound, texts, and y.

Referenced by coeur::init().

bool credit::OnEvent ( const SEvent &  event  ) 

Definition at line 156 of file credit.cpp.

Referenced by coeur::OnEvent().

int credit::start (  ) 

Definition at line 100 of file credit.cpp.

References activate, base::log(), base::mycore, coeur::play(), sound, and y.

Referenced by BOOST_PYTHON_MODULE(), and coeur::startCredit().

int credit::stop (  ) 

Definition at line 109 of file credit.cpp.

References activate, base::log(), logos, texts, and y.

Referenced by BOOST_PYTHON_MODULE(), close(), and update().

int credit::update (  )  [virtual]

Updating(should be call on each loop).

Does nothing

Returns:
Always 0

Reimplemented from base.

Definition at line 55 of file credit.cpp.

References activate, logos, newY, stop(), texts, and y.

Referenced by coeur::update().


Member Data Documentation

bool credit::activate [private]

Definition at line 24 of file credit.h.

Referenced by addLogo(), addText(), init(), start(), stop(), and update().

IGUIEnvironment* credit::env [private]

Definition at line 20 of file credit.h.

Referenced by addLogo(), addText(), and init().

std::vector<IGUIImage*>* credit::logos [private]

Definition at line 31 of file credit.h.

Referenced by addLogo(), close(), credit(), init(), stop(), update(), and ~credit().

IGUIFont* credit::mainFont [private]

Definition at line 22 of file credit.h.

int credit::newY [private]

Definition at line 26 of file credit.h.

Referenced by addLogo(), addText(), init(), and update().

stringc credit::sound [private]

Definition at line 29 of file credit.h.

Referenced by init(), and start().

std::vector<IGUIStaticText*>* credit::texts [private]

Definition at line 32 of file credit.h.

Referenced by addText(), close(), credit(), init(), stop(), update(), and ~credit().

int credit::y [private]

Definition at line 27 of file credit.h.

Referenced by init(), start(), stop(), and update().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on Wed Sep 9 18:20:15 2009 for The Merry Turnip by  doxygen 1.6.1