00001 /********************************************************************************/ 00002 /* */ 00003 /* Netrinjo-Engine - a library for game-development */ 00004 /* Copyright (C) 2005 by Tobias Nadler */ 00005 /* */ 00006 /* This library is free software; you can redistribute it and/or */ 00007 /* modify it under the terms of the GNU Lesser General Public */ 00008 /* License as published by the Free Software Foundation; either */ 00009 /* version 2.1 of the License, or (at your option) any later version. */ 00010 /* */ 00011 /* This library is distributed in the hope that it will be useful, */ 00012 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 00013 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */ 00014 /* Lesser General Public License for more details. */ 00015 /* */ 00016 /* You should have received a copy of the GNU Lesser General Public */ 00017 /* License along with this library; if not, write to the Free Software */ 00018 /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00019 /* */ 00020 /********************************************************************************/ 00021 /* here are some common constants and defs */ 00022 /*******************************************/ 00023 00024 #ifndef DEFINITIONS_H 00025 #define DEFINITIONS_H 00026 00043 00044 #define CLR_INVALID 0xFFFFFFFF 00046 #define CLR_STANDARD (CLR_INVALID - 1) 00047 00049 #define INFINITE 0xFFFFFFFF 00051 #define MAX_UINT32 0xFFFFFFFF 00053 #define MAX_SINT32 0x7FFFFFFF 00055 #define MIN_SINT32 0x80000000 00057 #define MAX_UINT16 0xFFFF 00059 #define MAX_SINT16 0x7FFF 00061 #define MIN_SINT16 0x8000 00063 #define MAX_BYTE 0xFF 00065 #define MAX_CHAR 0x7F 00067 #define MIN_CHAR 0x80 00068 00070 #define SMB_OK 0x01 00072 #define SMB_YES 0x02 00074 #define SMB_CANCEL 0x04 00076 #define SMB_NO 0x08 00078 #define SMB_OKCANCEL 0x05 00080 #define SMB_YESNO 0x0A 00082 #define SMB_YESNOCANCEL 0x0E 00083 00085 #ifndef MAX 00086 #define MAX(a,b) (((a) > (b)) ? (a) : (b)) 00087 #endif 00089 #ifndef MIN 00090 #define MIN(a,b) (((a) < (b)) ? (a) : (b)) 00091 #endif 00092 00094 #define sqr(X) (X*X) 00096 #define BETWEEN(i,min,max) ((i >= min)&&(i <= max)) // = obsolete ISBETW 00098 #define CMP_WITH_2(x,i1,i2) ((x == i1)||(x == i2)) // = obsolete ISOR2 00099 00100 //#define EULER 2.7182818284590//4523536028747135266 //Euler'sche Zahl 00101 00102 #endif 00103
1.5.1