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

menu.cpp File Reference

#include "SDL.h"
#include "SDL_video.h"
#include "sge_primitives.h"
#include "menu.h"
#include "gfx.h"
#include "State.h"
#include "common.h"
#include "Audio.h"
#include "Backend.h"
#include "sge_tt_text.h"
#include "sge_surface.h"
#include "MortalNetwork.h"
#include "Joystick.h"
#include <stdarg.h>

Functions

void InputKeys (int a_iPlayerNumber)
void MortalNetworkResetMessages (bool a_bClear)
void MortalNetworkMessage (const char *format,...)
bool MortalNetworkCheckKey ()
bool Connect (const char *a_pcHostname)
const char * FindString (const char *a_ppcNames[], const int a_piValues[], int a_iValue)
const char * GetGameTimeString (int a_iValue)
const char * GetGameSpeedString (int a_iValue)
const char * GetHitPointsString (int a_iValue)
void MakeMenuBackground ()
void DoMenu (CMenu &a_roMenu)
void DoMenu ()

Variables

const char * g_ppcGameTime [] = { "0:30", "0:45", "1:00", "1:15", "1:30", "1:45", "2:00", "3:00", "5:00", NULL }
const int g_piGameTime [] = { 30, 45, 60, 75, 90, 105, 120, 180, 300 }
const char * g_ppcHitPoints [] = { "BABY", "VERY LOW", "LOW", "NORMAL", "HIGH", "VERY HIGH", "NEAR IMMORTAL", NULL }
const int g_piHitPoints [] = { 1, 10, 50, 100, 150, 200, 500 }
const char * g_ppcGameSpeed [] = { "SNAIL RACE", "SLOW", "NORMAL", "TURBO", "KUNG-FU MOVIE", NULL }
const int g_piGameSpeed [] = { 16, 14, 12, 10, 8 }
const char * g_ppcChannels [] = { "MONO", "STEREO", NULL }
const int g_piChannels [] = { 1, 2 }
const char * g_ppcMixingRate [] = { "LOW", "MEDIUM", "HIGH", NULL }
const int g_piMixingRate [] = { 1, 2, 3 }
const char * g_ppcMixingBits [] = { "8 bit", "16 bit", NULL }
const int g_piMixingBits [] = { 1, 2 }
const char * g_ppcVolume [] = { "OFF", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%", NULL }
const int g_piVolume [] = { 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 }
const char * g_ppcLanguage [] = { "English", "Spanish", "Francais", "Magyar", "Portugues", NULL }
const int g_piLanguage [] = { 0, 1, 2, 3, 4 }
const char * g_ppcLanguageCodes [] = { "en", "es", "fr", "hu", "pt" }
const char * g_ppcServer [] = { "Connect to game", "Create game", NULL }
int g_piServer [] = { 0, 1 }
const char * g_ppcTeamMode [] = { "1 VS 1", "Good VS Evil", "Custom teams", NULL }
int g_piTeamMode [] = { SState::Team_ONE_VS_ONE, SState::Team_GOOD_VS_EVIL, SState::Team_CUSTOM }
const char * g_ppcTeamSize [] = { "2", "3", "4", "5", "6", "7", "8", "9", "10", NULL }
int g_piTeamSize [] = { 2, 3, 4, 5, 6, 7, 8, 9, 10 }
const char * g_ppcNumPlayers [] = { "2", "3", "4", NULL }
int g_piNumPlayers [] = { 2, 3, 4 }
const char * g_ppcYesNo [] = { "Yes", "No", NULL }
int g_piYesNo [] = { 1, 0 }
SDL_Surface * poBackground = NULL
int g_iMessageY
static char g_acMessageBuffer [1024]

Function Documentation

bool Connect const char *  a_pcHostname  ) 
 

void DoMenu  ) 
 

void DoMenu CMenu a_roMenu  ) 
 

const char* FindString const char *  a_ppcNames[],
const int  a_piValues[],
int  a_iValue
 

const char* GetGameSpeedString int  a_iValue  ) 
 

const char* GetGameTimeString int  a_iValue  ) 
 

const char* GetHitPointsString int  a_iValue  ) 
 

void InputKeys int  a_iPlayerNumber  ) 
 

void MakeMenuBackground  ) 
 

bool MortalNetworkCheckKey  ) 
 

void MortalNetworkMessage const char *  format,
  ...
 

void MortalNetworkResetMessages bool  a_bClear  ) 
 


Variable Documentation

char g_acMessageBuffer[1024] [static]
 

int g_iMessageY
 

const int g_piChannels[] = { 1, 2 }
 

const int g_piGameSpeed[] = { 16, 14, 12, 10, 8 }
 

const int g_piGameTime[] = { 30, 45, 60, 75, 90, 105, 120, 180, 300 }
 

const int g_piHitPoints[] = { 1, 10, 50, 100, 150, 200, 500 }
 

const int g_piLanguage[] = { 0, 1, 2, 3, 4 }
 

const int g_piMixingBits[] = { 1, 2 }
 

const int g_piMixingRate[] = { 1, 2, 3 }
 

int g_piNumPlayers[] = { 2, 3, 4 }
 

int g_piServer[] = { 0, 1 }
 

int g_piTeamMode[] = { SState::Team_ONE_VS_ONE, SState::Team_GOOD_VS_EVIL, SState::Team_CUSTOM }
 

int g_piTeamSize[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10 }
 

const int g_piVolume[] = { 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 }
 

int g_piYesNo[] = { 1, 0 }
 

const char* g_ppcChannels[] = { "MONO", "STEREO", NULL }
 

const char* g_ppcGameSpeed[] = { "SNAIL RACE", "SLOW", "NORMAL", "TURBO", "KUNG-FU MOVIE", NULL }
 

const char* g_ppcGameTime[] = { "0:30", "0:45", "1:00", "1:15", "1:30", "1:45", "2:00", "3:00", "5:00", NULL }
 

const char* g_ppcHitPoints[] = { "BABY", "VERY LOW", "LOW", "NORMAL", "HIGH", "VERY HIGH", "NEAR IMMORTAL", NULL }
 

const char* g_ppcLanguage[] = { "English", "Spanish", "Francais", "Magyar", "Portugues", NULL }
 

const char* g_ppcLanguageCodes[] = { "en", "es", "fr", "hu", "pt" }
 

const char* g_ppcMixingBits[] = { "8 bit", "16 bit", NULL }
 

const char* g_ppcMixingRate[] = { "LOW", "MEDIUM", "HIGH", NULL }
 

const char* g_ppcNumPlayers[] = { "2", "3", "4", NULL }
 

const char* g_ppcServer[] = { "Connect to game", "Create game", NULL }
 

const char* g_ppcTeamMode[] = { "1 VS 1", "Good VS Evil", "Custom teams", NULL }
 

const char* g_ppcTeamSize[] = { "2", "3", "4", "5", "6", "7", "8", "9", "10", NULL }
 

const char* g_ppcVolume[] = { "OFF", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%", NULL }
 

const char* g_ppcYesNo[] = { "Yes", "No", NULL }
 

SDL_Surface* poBackground = NULL