#ifndef STMISC_H
#define STMISC_H


/*****************/
/* Misc variable */
/*****************/
extern aRandom stRandom;
extern aString stVersion;


/******************/
/* Misc functions */
/******************/
#define gzStatic_Cast(class, data) static_cast<class *>(data)

char *A_Or_An(const char *String, bool captial = false);
void PatchData(void *buf, unsigned long size, unsigned long addr);
void PatchByte(unsigned char Byte, unsigned long size, unsigned long addr);
void gzLogger(const char *header, const char *msg, ...);
aString GetPresetInfo(nc_PhysicalGameObj* obj, bool checkExplosion);
aString SecsToAscTime(unsigned int secs);
void Send_Purchase_Response(int pID, int value);
void AddFrameTime(float &data, bool condition);
void SubFrameTime(float &data, bool condition);
void SendBhsColorMsg(nc_Vector3 color, const char *msg, ...);
void DebugLog(const char *message, ...);

#endif
