Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
MatcherClass Class Reference

#include <matcher.h>

Inherited by GeneralsClientMatcher, and GeneralsMatcher.

Public Member Functions

 MatcherClass ()
 
virtual ~MatcherClass ()
 
virtual void init (void)
 
virtual void checkMatches (void)
 
virtual void handleDisconnect (const char *reason)
 
virtual void handleRoomMessage (const char *nick, const char *message, MessageType messageType)
 
virtual void handlePlayerMessage (const char *nick, const char *message, MessageType messageType)
 
virtual void handlePlayerJoined (const char *nick)
 
virtual void handlePlayerLeft (const char *nick)
 
virtual void handlePlayerChangedNick (const char *oldNick, const char *newNick)
 
virtual void handlePlayerEnum (bool success, int gameSpyIndex, const char *nick, int flags)
 
void handleConnect (bool success)
 
void handleGroupRoomList (bool success, int groupID, const char *name)
 
void handleJoin (bool success)
 
void handleNickError (const char *badNick)
 
void connectAndLoop (void)
 

Protected Member Functions

Wstring getString (const Wstring &key)
 
void readLoop (void)
 

Protected Attributes

Wstring m_baseNick
 
std::string m_nick
 
int m_profileID
 
PEER m_peer
 
bool m_connectSuccess
 
bool m_joinSuccess
 
int done
 
bool quiet
 
int m_groupID
 
bool m_rotateLogs
 
time_t m_lastRotation
 

Detailed Description

Definition at line 36 of file matcher.h.

Constructor & Destructor Documentation

◆ MatcherClass()

MatcherClass::MatcherClass ( void )

Definition at line 29 of file matcher.cpp.

◆ ~MatcherClass()

virtual MatcherClass::~MatcherClass ( )
inlinevirtual

Definition at line 40 of file matcher.h.

Member Function Documentation

◆ checkMatches()

virtual void MatcherClass::checkMatches ( void )
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 46 of file matcher.h.

◆ connectAndLoop()

void MatcherClass::connectAndLoop ( void )

Definition at line 313 of file matcher.cpp.

◆ getString()

Wstring MatcherClass::getString ( const Wstring & key)
protected

Definition at line 40 of file matcher.cpp.

◆ handleConnect()

void MatcherClass::handleConnect ( bool success)

Definition at line 270 of file matcher.cpp.

◆ handleDisconnect()

virtual void MatcherClass::handleDisconnect ( const char * reason)
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 49 of file matcher.h.

◆ handleGroupRoomList()

void MatcherClass::handleGroupRoomList ( bool success,
int groupID,
const char * name )

Definition at line 279 of file matcher.cpp.

◆ handleJoin()

void MatcherClass::handleJoin ( bool success)

Definition at line 283 of file matcher.cpp.

◆ handleNickError()

void MatcherClass::handleNickError ( const char * badNick)

Definition at line 293 of file matcher.cpp.

◆ handlePlayerChangedNick()

virtual void MatcherClass::handlePlayerChangedNick ( const char * oldNick,
const char * newNick )
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 59 of file matcher.h.

◆ handlePlayerEnum()

virtual void MatcherClass::handlePlayerEnum ( bool success,
int gameSpyIndex,
const char * nick,
int flags )
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 61 of file matcher.h.

◆ handlePlayerJoined()

virtual void MatcherClass::handlePlayerJoined ( const char * nick)
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 55 of file matcher.h.

◆ handlePlayerLeft()

virtual void MatcherClass::handlePlayerLeft ( const char * nick)
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 57 of file matcher.h.

◆ handlePlayerMessage()

virtual void MatcherClass::handlePlayerMessage ( const char * nick,
const char * message,
MessageType messageType )
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 53 of file matcher.h.

◆ handleRoomMessage()

virtual void MatcherClass::handleRoomMessage ( const char * nick,
const char * message,
MessageType messageType )
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 51 of file matcher.h.

◆ init()

virtual void MatcherClass::init ( void )
inlinevirtual

Reimplemented in GeneralsClientMatcher, and GeneralsMatcher.

Definition at line 43 of file matcher.h.

◆ readLoop()

void MatcherClass::readLoop ( void )
protected

Definition at line 55 of file matcher.cpp.

Member Data Documentation

◆ done

int MatcherClass::done
protected

Definition at line 83 of file matcher.h.

◆ m_baseNick

Wstring MatcherClass::m_baseNick
protected

Definition at line 75 of file matcher.h.

◆ m_connectSuccess

bool MatcherClass::m_connectSuccess
protected

Definition at line 79 of file matcher.h.

◆ m_groupID

int MatcherClass::m_groupID
protected

Definition at line 85 of file matcher.h.

◆ m_joinSuccess

bool MatcherClass::m_joinSuccess
protected

Definition at line 80 of file matcher.h.

◆ m_lastRotation

time_t MatcherClass::m_lastRotation
protected

Definition at line 88 of file matcher.h.

◆ m_nick

std::string MatcherClass::m_nick
protected

Definition at line 76 of file matcher.h.

◆ m_peer

PEER MatcherClass::m_peer
protected

Definition at line 78 of file matcher.h.

◆ m_profileID

int MatcherClass::m_profileID
protected

Definition at line 77 of file matcher.h.

◆ m_rotateLogs

bool MatcherClass::m_rotateLogs
protected

Definition at line 87 of file matcher.h.

◆ quiet

bool MatcherClass::quiet
protected

Definition at line 84 of file matcher.h.


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