bool oldattackkey;
long long MD5_string (char *string);
- static void LoadTexture(char *fileName, GLuint *textureid,int mipmap, bool hasalpha);
- static void LoadTextureSave(char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize);
- void LoadSave(char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize);
- bool AddClothes(char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize);
+ static void LoadTexture(const char *fileName, GLuint *textureid,int mipmap, bool hasalpha);
+ static void LoadTextureSave(const char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize);
+ void LoadSave(const char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize);
+ bool AddClothes(const char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize);
void InitGame();
void LoadStuff();
void LoadingScreen();
}
-void Game::LoadTexture(char *fileName, GLuint *textureid,int mipmap, bool hasalpha)
+void Game::LoadTexture(const char *fileName, GLuint *textureid,int mipmap, bool hasalpha)
{
GLuint type;
// }
}
-void Game::LoadTextureSave(char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize)
+void Game::LoadTextureSave(const char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize)
{
GLuint type;
int i;
// }
}
-void Game::LoadSave(char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize)
+void Game::LoadSave(const char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize)
{
int i;
int bytesPerPixel;
}
}
-bool Game::AddClothes(char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize)
+bool Game::AddClothes(const char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize)
{
int i;
int bytesPerPixel;
}
-unsigned short CharToKey(char* which)
+unsigned short CharToKey(const char* which)
{
if(!strcmp(which,"a")){
return MAC_A_KEY;
}
}
-char* KeyToChar(unsigned short which)
+const char* KeyToChar(unsigned short which)
{
static int i;
return which;
}
-bool Compare(char *thestring, char *tocompare, int start, int end)
+bool Compare(const char *thestring, const char *tocompare, int start, int end)
{
static int i;
for(i=start;i<=end;i++){
void MoveMouse(int xcoord, int ycoord, Point *mouseloc);
void RefreshMouse(Point *mouseloc);
void DisposeMouse();
-unsigned short CharToKey(char* which);
-char* KeyToChar(unsigned short which);
+unsigned short CharToKey(const char* which);
+const char* KeyToChar(unsigned short which);
char KeyToSingleChar(unsigned short which);
char Shift(char which);
-bool Compare(char *thestring, char *tocompare, int start, int end);
+bool Compare(const char *thestring, const char *tocompare, int start, int end);
#endif
extern float skyboxb;
extern int tutoriallevel;
-bool SkyBox::load( char *ffront,char *fleft,char *fback,char *fright,char *fup,char *fdown,char *fcloud,char *freflect)
+bool SkyBox::load( const char *ffront,const char *fleft,const char *fback,const char *fright,const char *fup,const char *fdown,const char *fcloud,const char *freflect)
{
/* static GLuint type;
unsigned char fileNamep[256];
GLuint front,left,back,right,up,down,cloud,reflect;
float cloudmove;
- bool load(char *ffront,char *fleft,char *fback,char *fright,char *fup,char *fdown,char *fcloud,char *freflect);
+ bool load(const char *ffront,const char *fleft,const char *fback,const char *fright,const char *fup,const char *fdown,const char *fcloud,const char *freflect);
void draw();
SkyBox();
}
-bool Terrain::load(char *fileName)
+bool Terrain::load(const char *fileName)
{
static long i,j;
static long x,y;
void UpdateTransparency(int whichx, int whichy);
void UpdateTransparencyother(int whichx, int whichy);
void UpdateTransparencyotherother(int whichx, int whichy);
- bool load(char *fileName);
+ bool load(const char *fileName);
void CalculateNormals();
void drawdecals();
void draw(int layer);
#include "Game.h"
extern TGAImageRec texture;
-void Text::LoadFontTexture(char *fileName)
+void Text::LoadFontTexture(const char *fileName)
{
GLuint type;
GLuint FontTexture;
GLuint base;
- void LoadFontTexture(char *fileName);
+ void LoadFontTexture(const char *fileName);
void BuildFont();
void glPrint(float x, float y, char *string, int set, float size, float width, float height);
void glPrintOutline(float x, float y, char *string, int set, float size, float width, float height);
return 0;
}
-unsigned short CharToKey(char* which)
+unsigned short CharToKey(const char* which)
{
// alphabetic keys
if(!strcasecmp(which,"a")){
return UNKNOWN_KEY;
}
-char* KeyToChar(unsigned short which)
+const char* KeyToChar(unsigned short which)
{
static int i;
return which;
}
-bool Compare(char *thestring, char *tocompare, int start, int end)
+bool Compare(const char *thestring, const char *tocompare, int start, int end)
{
static int i;
for(i=start;i<=end;i++){
void MoveMouse(int xcoord, int ycoord, Point *mouseloc);
void RefreshMouse(Point *mouseloc);
void DisposeMouse();
-unsigned short CharToKey(char* which);
-char* KeyToChar(unsigned short which);
+unsigned short CharToKey(const char* which);
+const char* KeyToChar(unsigned short which);
char KeyToSingleChar(unsigned short which);
char Shift(char which);
-bool Compare(char *thestring, char *tocompare, int start, int end);
+bool Compare(const char *thestring, const char *tocompare, int start, int end);
typedef unsigned char KeyMap[16];