altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
Menu Class Reference

#include <menu.h>

Collaboration diagram for Menu:
Collaboration graph
[legend]

Public Member Functions

 Menu ()
 
void init (Graphics *gfx, Audio *audio, char **pk3_list, int num_pk3)
 
void render (Global &global, bool ingame=false)
 
void load (char *menu_file, char *state_file)
 
void delta (char *delta, Engine &altEngine)
 
bool delta (float x, float y)
 
void handle (char key, Engine *altEngine)
 
void draw_text (char *str, float x, float y, float scale, vec3 &color, bool start, bool stop)
 
void render_console (Global &global)
 
void render_chatmode (Global &global)
 
void render_stringmode (Global &global)
 
void handle_console (char key, Engine *altEngine)
 
void handle_chatmode (char key, Engine *altEngine)
 
void handle_stringmode (char key, Engine *altEngine)
 
void movepos (char c, float &xpos, float &ypos, float scale)
 
void print (const char *str)
 
void stop ()
 
void play ()
 
void clear_console ()
 
void copy (char *data, unsigned int size)
 
void print_chat (const char *str)
 
void render_chat (Global &global)
 
void clear_chat ()
 
void print_notif (const char *str)
 
void render_notif (Global &global)
 
void clear_notif ()
 
void sub_value (const char *str, char *out)
 
void handle_slider (char *out, float value)
 
 ~Menu ()
 

Public Attributes

bool chat
 
bool notif
 
bool console
 
bool ingame
 
bool chatmode
 
bool stringmode
 
bool bindnextkey
 
char * bindstr
 
char bindcmd [128]
 
menudata_t data
 
char * string_target
 
char string_cmd [128]
 

Static Public Attributes

static vector< char * > console_buffer
 
static vector< char * > chat_buffer
 
static vector< char * > string_buffer
 
static vector< char * > notif_buffer
 

Private Attributes

matrix4 matrix
 
Graphicsgfx
 
Audioaudio
 
vector< char * > cmd_buffer
 
vector< menu_t * > menu_list
 
vector< state_t * > state_list
 
int menu_state
 
char key_buffer [1024]
 
unsigned int history_index
 
unsigned int line_offset
 
mFont font
 
int menu_object
 
int console_object
 
int font_object
 
wave_t menu_wave
 
int menu_source
 
wave_t delta_wave
 
int delta_source
 

Constructor & Destructor Documentation

Menu::Menu ( )
Menu::~Menu ( )

Member Function Documentation

void Menu::clear_chat ( )
void Menu::clear_console ( )

Here is the caller graph for this function:

void Menu::clear_notif ( )
void Menu::copy ( char *  data,
unsigned int  size 
)

Here is the caller graph for this function:

void Menu::delta ( char *  delta,
Engine altEngine 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool Menu::delta ( float  x,
float  y 
)

Here is the call graph for this function:

void Menu::draw_text ( char *  str,
float  x,
float  y,
float  scale,
vec3 color,
bool  start,
bool  stop 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::handle ( char  key,
Engine altEngine 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::handle_chatmode ( char  key,
Engine altEngine 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::handle_console ( char  key,
Engine altEngine 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::handle_slider ( char *  out,
float  value 
)

Here is the caller graph for this function:

void Menu::handle_stringmode ( char  key,
Engine altEngine 
)

Here is the caller graph for this function:

void Menu::init ( Graphics gfx,
Audio audio,
char **  pk3_list,
int  num_pk3 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::load ( char *  menu_file,
char *  state_file 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::movepos ( char  c,
float &  xpos,
float &  ypos,
float  scale 
)

Here is the caller graph for this function:

void Menu::play ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::print ( const char *  str)

Here is the caller graph for this function:

void Menu::print_chat ( const char *  str)

Here is the caller graph for this function:

void Menu::print_notif ( const char *  str)

Here is the caller graph for this function:

void Menu::render ( Global global,
bool  ingame = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::render_chat ( Global global)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::render_chatmode ( Global global)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::render_console ( Global global)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::render_notif ( Global global)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::render_stringmode ( Global global)

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::stop ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void Menu::sub_value ( const char *  str,
char *  out 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Audio* Menu::audio
private
char Menu::bindcmd[128]
bool Menu::bindnextkey
char* Menu::bindstr
bool Menu::chat
vector< char * > Menu::chat_buffer
static
bool Menu::chatmode
vector<char *> Menu::cmd_buffer
private
bool Menu::console
vector< char * > Menu::console_buffer
static
int Menu::console_object
private
menudata_t Menu::data
int Menu::delta_source
private
wave_t Menu::delta_wave
private
mFont Menu::font
private
int Menu::font_object
private
Graphics* Menu::gfx
private
unsigned int Menu::history_index
private
bool Menu::ingame
char Menu::key_buffer[1024]
private
unsigned int Menu::line_offset
private
matrix4 Menu::matrix
private
vector<menu_t *> Menu::menu_list
private
int Menu::menu_object
private
int Menu::menu_source
private
int Menu::menu_state
private
wave_t Menu::menu_wave
private
bool Menu::notif
vector< char * > Menu::notif_buffer
static
vector<state_t *> Menu::state_list
private
vector< char * > Menu::string_buffer
static
char Menu::string_cmd[128]
char* Menu::string_target
bool Menu::stringmode

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