OpenMortal Apocalypse mirror
Sourceforge mirror
SourceForge.net Logo
      News | Info | Characters | Arenas | Screenshots | Forums | Download  
Developer: Making of | Character-HOWTO | AI Design | Submit a Character
Documentation: Main Page | Modules | Class Hierarchy | Class List | File List

OnlineChat.cpp File Reference

#include "OnlineChat.h"
#include "TextArea.h"
#include "State.h"
#include "menu.h"
#include "Audio.h"
#include "sge_tt_text.h"
#include "gfx.h"
#include "common.h"
#include "config.h"
#include "Event.h"

Defines

#define MORTALNETSERVER   "apocalypse.game-host.org"
#define MORTALNETWORKPORT   0x3A23
#define READLINE_Y   440
#define NICKLIST_X   500
#define CHECKCONNECTION   if ( m_poSocket == NULL ) return;
#define RETURNNOERROR
#define RETURNWITHERROR
#define RETURNWITHADDITIONALERROR

Enumerations

enum  {
  MENU_DISCONNECT = 100, MENU_CHALLENGE, MENU_CHANGENICK, MENU_OK,
  MENU_ACCEPTCHALLENGE, MENU_REJECTHALLENGE
}

Functions

void MortalNetworkResetMessages (bool a_bClear)
void MortalNetworkMessage (const char *format,...)
bool MortalNetworkCheckKey ()
void DoOnlineChat ()
 Static global entry point for chatting.

Variables

int g_iMessageY

Define Documentation

#define CHECKCONNECTION   if ( m_poSocket == NULL ) return;
 

#define MORTALNETSERVER   "apocalypse.game-host.org"
 

#define MORTALNETWORKPORT   0x3A23
 

#define NICKLIST_X   500
 

#define READLINE_Y   440
 

#define RETURNNOERROR
 

Value:

{                               \
        debug( "%s\n", m_sLastError.c_str() );      \
        return false; }

#define RETURNWITHADDITIONALERROR
 

Value:

{                   \
        m_sLastError += SDLNet_GetError();          \
        debug( "%s\n", m_sLastError.c_str() );      \
        return false; }

#define RETURNWITHERROR
 

Value:

{                           \
        m_sLastError = SDLNet_GetError();           \
        debug( "%s\n", m_sLastError.c_str() );      \
        return false; }


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
MENU_DISCONNECT 
MENU_CHALLENGE 
MENU_CHANGENICK 
MENU_OK 
MENU_ACCEPTCHALLENGE 
MENU_REJECTHALLENGE 


Function Documentation

void DoOnlineChat  ) 
 

Static global entry point for chatting.

bool MortalNetworkCheckKey  ) 
 

void MortalNetworkMessage const char *  format,
  ...
 

void MortalNetworkResetMessages bool  a_bClear  ) 
 


Variable Documentation

int g_iMessageY