|
|
char diffusion[IRC_CHANNEL_SIZE+1]; | char diffusion[IRC_CHANNEL_SIZE+1]; |
char message[IRC_MESSAGE_SIZE+1]; | char message[IRC_MESSAGE_SIZE+1]; |
| |
ChatMessage::ChatMessage() { source[0]=0; diffusion[0]=0; message[0]=0; } |
ChatMessage() { source[0]=0; diffusion[0]=0; message[0]=0; } |
}; | }; |
| |
struct InfoMessage | struct InfoMessage |
|
|
char diffusion[IRC_CHANNEL_SIZE+1]; | char diffusion[IRC_CHANNEL_SIZE+1]; |
char message[IRC_MESSAGE_SIZE+1]; | char message[IRC_MESSAGE_SIZE+1]; |
| |
InfoMessage::InfoMessage(InfoMessageType t) { type=t; source[0]=0; diffusion[0]=0; message[0]=0; } |
InfoMessage(InfoMessageType t) { type=t; source[0]=0; diffusion[0]=0; message[0]=0; } |
}; | }; |
| |
protected: | protected: |
|
|
| |
protected: | protected: |
//! resort players | //! resort players |
void EndGameScreen::sortAndSet(EndOfGameStat::Type type); |
void sortAndSet(EndOfGameStat::Type type); |
| |
public: | public: |
EndGameScreen(GameGUI *gui); | EndGameScreen(GameGUI *gui); |
|
|
{ | { |
| |
public: | public: |
FuncFileList::FuncFileList(int x, int y, int w, int h, Uint32 hAlign, Uint32 vAlign, const char *font, |
FuncFileList(int x, int y, int w, int h, Uint32 hAlign, Uint32 vAlign, const char *font, |
const char *dir, const char *extension, const bool recurse, | const char *dir, const char *extension, const bool recurse, |
std::string (*filenameToNameFunc)(const char *filename), | std::string (*filenameToNameFunc)(const char *filename), |
std::string (*nameToFilenameFunc)(const char *dir, const char *name, const char *extension)) | std::string (*nameToFilenameFunc)(const char *dir, const char *name, const char *extension)) |
|
|
this->generateList(); | this->generateList(); |
} | } |
| |
FuncFileList::~FuncFileList() |
~FuncFileList() |
{} | {} |
| |
private: | private: |
std::string FuncFileList::fileToList(const char* fileName) const |
std::string fileToList(const char* fileName) const |
{ | { |
return filenameToNameFunc(fullName(fileName).c_str()); | return filenameToNameFunc(fullName(fileName).c_str()); |
} | } |
| |
std::string FuncFileList::listToFile(const char* listName) const |
std::string listToFile(const char* listName) const |
{ | { |
return nameToFilenameFunc(fullDir().c_str(), listName, extension.c_str()); | return nameToFilenameFunc(fullDir().c_str(), listName, extension.c_str()); |
} | } |