#include <credit.h>
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 |
Definition at line 2 of file credit.h.
credit::credit | ( | ) |
Definition at line 3 of file credit.cpp.
credit::~credit | ( | ) |
Definition at line 9 of file credit.cpp.
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
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
Reimplemented from base.
Definition at line 55 of file credit.cpp.
References activate, logos, newY, stop(), texts, and y.
Referenced by coeur::update().
bool credit::activate [private] |
IGUIEnvironment* credit::env [private] |
std::vector<IGUIImage*>* credit::logos [private] |
IGUIFont* credit::mainFont [private] |
int credit::newY [private] |
stringc credit::sound [private] |
std::vector<IGUIStaticText*>* credit::texts [private] |
int credit::y [private] |