Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/console.h

Go to the documentation of this file.
00001   /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
00002     || NoX-Wizard UO Server Emulator (NXW) [http://noxwizard.sourceforge.net]  ||
00003     ||                                                                         ||
00004     || This software is free software released under GPL2 license.             ||
00005     || You can find detailed license information in nox-wizard.cpp file.       ||
00006     ||                                                                         ||
00007     || For any question post to NoX-Wizard forums.                             ||
00008     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
00009 
00014 #ifndef __CONSOLE_H__
00015 #define __CONSOLE_H__
00016 
00017 #ifdef WIN32
00018 #define __CDECL __cdecl
00019 #else
00020 #define __CDECL
00021 #endif
00022 
00023 
00024 #ifdef __cplusplus
00025 
00026 extern "C" void __CDECL ConOut(char *txt, ...);         
00027 extern "C" void __CDECL ErrOut(char *txt, ...);         
00028 extern "C" void __CDECL WarnOut(char *txt, ...);        
00029 extern "C" void __CDECL InfoOut(char *txt, ...);        
00030 extern "C" void __CDECL PanicOut(char *txt, ...);       
00031 extern "C" void __CDECL DmpOut(char *txt, ...);         
00032 extern "C" void __CDECL SDbgOut(char *txt, ...);        
00033 extern "C" void __CDECL SDbgIn(char *s, int n);         
00034 extern "C" void __CDECL STraceOut(char *txt, ...);
00035 void clearscreen( void );
00036 void setWinTitle(char *str, ...);
00037 void constart( void );
00038 
00039 #define ALERT_TYPE_OK 0
00040 #define ALERT_TYPE_YESNO 1
00041 
00042 #define ALERT_MESSAGE 0
00043 #define ALERT_INFO 1
00044 #define ALERT_WARNING 2
00045 #define ALERT_ERROR 3
00046 #define ALERT_FATAL 4
00047 
00048 bool alertBox(char *msg, char *title, int gravity = 0, int type = 0);
00049 
00050 #else
00051 void __CDECL ConOut(char *txt, ...);
00052 void __CDECL STraceOut(char *txt, ...);
00053 void __CDECL SDbgOut(char *txt, ...);
00054 void __CDECL SDbgIn(char *s, int n);
00055 #endif
00056 
00057 void initConsole();
00058 char* getNoXDate();
00059 
00060 #endif //__CONSOLE_H__
SourceForge.net Logo