hedgewars/uLand.pas
changeset 3603 b6b1989744ef
parent 3598 a8aa06bae895
child 3607 2ad7885615c1
equal deleted inserted replaced
3602:99c93fa258d6 3603:b6b1989744ef
    33     TPreview  = packed array[0..127, 0..31] of byte;
    33     TPreview  = packed array[0..127, 0..31] of byte;
    34     TDirtyTag = packed array[0 .. LAND_HEIGHT div 32 - 1, 0 .. LAND_WIDTH div 32 - 1] of byte;
    34     TDirtyTag = packed array[0 .. LAND_HEIGHT div 32 - 1, 0 .. LAND_WIDTH div 32 - 1] of byte;
    35 
    35 
    36 var Land: TCollisionArray;
    36 var Land: TCollisionArray;
    37     LandPixels: TLandArray;
    37     LandPixels: TLandArray;
    38     LandDirty: TDirtyTag;
    38 // LandCollided is reusing DirtyTag size because currently the largest Radius we have is 32px (Piano)
       
    39     LandDirty, LandCollided: TDirtyTag;
    39     hasBorder: boolean; 
    40     hasBorder: boolean; 
    40     hasGirders: boolean;  
    41     hasGirders: boolean;  
    41     isMap: boolean;  
    42     isMap: boolean;  
    42     playHeight, playWidth, leftX, rightX, topY, MaxHedgehogs: Longword;  // idea is that a template can specify height/width.  Or, a map, a height/width by the dimensions of the image.  If the map has pixels near top of image, it triggers border.
    43     playHeight, playWidth, leftX, rightX, topY, MaxHedgehogs: Longword;  // idea is that a template can specify height/width.  Or, a map, a height/width by the dimensions of the image.  If the map has pixels near top of image, it triggers border.
    43     LandBackSurface: PSDL_Surface;
    44     LandBackSurface: PSDL_Surface;