Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <msgcenter.h>
Public Member Functions | |
bool | last (unsigned int n, gameMessage &m, const std::vector< std::string > &who=std::vector< std::string >(), const std::vector< std::string > &whoNOT=std::vector< std::string >()) |
void | add (string from, string to, string message, double delay=0.0) |
void | clear (const std::vector< std::string > &who=std::vector< std::string >(), const std::vector< std::string > &whoNOT=std::vector< std::string >()) |
Public Attributes | |
vector< gameMessage > | messages |
Definition at line 61 of file msgcenter.h.
void MessageCenter::add | ( | string | from, |
string | to, | ||
string | message, | ||
double | delay = 0.0 |
||
) |
Definition at line 49 of file msgcenter.cpp.
References gameMessage::from, Mission::getGametime(), gameMessage::message, messages, mission, NetServer::sendMessage(), SERVER, gameMessage::time, gameMessage::to, and VSServer.
Referenced by Mission::DirectorShipDestroyed(), DoDockingOps(), DoSpeech(), BaseInterface::Draw(), and UniverseUtil::IOmessage().
void MessageCenter::clear | ( | const std::vector< std::string > & | who = std::vector< std::string > () , |
const std::vector< std::string > & | whoNOT = std::vector< std::string > () |
||
) |
Definition at line 62 of file msgcenter.cpp.
bool MessageCenter::last | ( | unsigned int | n, |
gameMessage & | m, | ||
const std::vector< std::string > & | who = std::vector< std::string > () , |
||
const std::vector< std::string > & | whoNOT = std::vector< std::string > () |
||
) |
Definition at line 72 of file msgcenter.cpp.
References i, index, j, messages, and size.
Referenced by Mission::BriefingRender(), GetRandomBarMessage(), BaseComputer::loadNewsControls(), and BaseInterface::Room::Talk::Talk().
vector< gameMessage > MessageCenter::messages |
Definition at line 71 of file msgcenter.h.