hedgewars/uConsts.pas
changeset 2171 8208946331ba
parent 2168 5ffb01c3b176
child 2177 c045698e044f
equal deleted inserted replaced
2170:aa77f2a6b4f1 2171:8208946331ba
   155 	msgFailed            = 'failed';
   155 	msgFailed            = 'failed';
   156 	msgFailedSize        = 'failed due to size';
   156 	msgFailedSize        = 'failed due to size';
   157 	msgGettingConfig     = 'Getting game config...';
   157 	msgGettingConfig     = 'Getting game config...';
   158 
   158 
   159 const
   159 const
       
   160 	ifNone        = $00000000;
       
   161 	ifAlpha       = $00000001;
       
   162 	ifCritical    = $00000002;
       
   163 	ifTransparent = $00000004;
       
   164 	ifIgnoreCaps  = $00000008;
       
   165 	
       
   166 const
   160 	cMaxPower     = 1500;
   167 	cMaxPower     = 1500;
   161 	cMaxAngle     = 2048;
   168 	cMaxAngle     = 2048;
   162 	cPowerDivisor = 1500;
   169 	cPowerDivisor = 1500;
   163 
   170 
   164 	MAXNAMELEN = 192;
   171 	MAXNAMELEN = 192;
   165 
   172 
   166 {$IFDEF IPHONEOS}
       
   167 //gotta rework this for compatibility; is it really needed anyway?
       
   168 	LAND_WIDTH = 1024;
       
   169     LAND_HEIGHT = 512;
       
   170     LAND_WIDTH_MASK  = $FFFFFC00;
       
   171     LAND_HEIGHT_MASK = $FFFFFE00;
       
   172 {$ELSE}
       
   173     LAND_WIDTH = 4096;
   173     LAND_WIDTH = 4096;
   174     LAND_HEIGHT = 2048;
   174     LAND_HEIGHT = 2048;
   175     LAND_WIDTH_MASK  = $FFFFF000;
   175     LAND_WIDTH_MASK  = $FFFFF000;
   176     LAND_HEIGHT_MASK = $FFFFF800;
   176     LAND_HEIGHT_MASK = $FFFFF800;
   177 {$ENDIF}
       
   178 
   177 
   179 	COLOR_LAND           = $FFFFFFFF;  // white
   178 	COLOR_LAND           = $FFFFFFFF;  // white
   180 	COLOR_INDESTRUCTIBLE = $FF0000FF;  // red
   179 	COLOR_INDESTRUCTIBLE = $FF0000FF;  // red
   181 
   180 
   182     GL_BGR = $80E0; // some opengl headers do not have these macros
   181     GL_BGR = $80E0; // some opengl headers do not have these macros