|
Marble and Madness | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
char[ 120 ] |
filemap
nome del file della mappa corrente |
char[ 120 ] |
filesphere
nome del file della mappa corrente |
string[ 100 ] |
map
vettore che contiene il nome delle mappe che la console trova nella directory del gioco |
int |
numitem
numero degli item da visualizzare nel menu corrente |
int |
nummap
numero delle mappe che sono state trovate |
int |
numsphere
numero dei file texture sfere che sono state trovate |
char[ 120 ] |
selitem
contiene la stringa dell'item selezionato |
int |
SizeX
dimensione X della console |
int |
SizeY
dimensione Y della console |
string[ 100 ] |
sphere
vettore che contiene il nome del file che contiene le texture delle sfere |
Constructor Summary | |
CConsole( void )
|
|
~CConsole( void )
|
Method Summary | |
void |
DrawBox( int x, int y, int sizex, int sizey, bool sel )
Disegna nella console un box partendo dalle coordinate (x,y) di dimensione (sizex)X(sizey) di colore nero se sel=true altrimenti bianco trasparante |
void |
glPrintf( GLuint x, GLuint y, int align, GLfloat scale, bool sel, char* format,... )
stampa una stringa centrata in (x,y). |
void |
item( int pos, char* str, bool sel )
Disegna un item ne menu. |
void |
ListMap( string dirPath )
crea la lista delle mappe presenti nella directory. |
void |
ListSphere( string dirPath )
crea la lista delle texture sphere presenti nella directory. |
void |
menu( int type, int selpos )
Disegna un menu nella console. |
void |
printf( int x, int y, char* format )
stampa nella console alle coordinta x,y la stringa contenuta in format |
void |
setSize( int X, int Y )
permette di definire le dimensione della console |
void |
title( char* t )
scrive nel menu come titolo la stringa puntata da t |
Field Detail |
public char filemap[ 120 ];
public char filesphere[ 120 ];
public string map[ 100 ];
public int numitem;
public int nummap;
public int numsphere;
public char selitem[ 120 ];
public int SizeX;
public int SizeY;
public string sphere[ 100 ];
Constructor Detail |
public CConsole( void );
public ~CConsole( void );
Method Detail |
public void DrawBox( int x, int y, int sizex, int sizey, bool sel );
public void glPrintf( GLuint x, GLuint y, int align, GLfloat scale, bool sel, char* format,... );
public void item( int pos, char* str, bool sel );
public void ListMap( string dirPath );
public void ListSphere( string dirPath );
public void menu( int type, int selpos );
public void printf( int x, int y, char* format );
public void setSize( int X, int Y );
public void title( char* t );
|
Marble and Madness | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |