map.h
changeset 1330 5d76a0522a11
parent 1247 3851739bfd09
child 1394 79cb56d80a3a
equal deleted inserted replaced
1329:6988419aa6f0 1330:5d76a0522a11
    33 // Scale a number relative to the map size
    33 // Scale a number relative to the map size
    34 uint ScaleByMapSize(uint); // Scale relative to the number of tiles
    34 uint ScaleByMapSize(uint); // Scale relative to the number of tiles
    35 uint ScaleByMapSize1D(uint); // Scale relative to the circumference of the map
    35 uint ScaleByMapSize1D(uint); // Scale relative to the circumference of the map
    36 
    36 
    37 typedef uint32 TileIndex;
    37 typedef uint32 TileIndex;
       
    38 
       
    39 typedef enum {
       
    40 	OWNER_TOWN			= 0xf,	// a town owns the tile
       
    41 	OWNER_NONE			= 0x10,	// nobody owns the tile
       
    42 	OWNER_WATER			= 0x11,	// "water" owns the tile
       
    43 	OWNER_SPECTATOR	= 0xff,	// spectator in MP or in scenario editor
       
    44 } Owner;
       
    45 
    38 enum {
    46 enum {
    39 	INVALID_TILE = (uint32) -1
    47 	INVALID_TILE = (uint32) -1
    40 };
    48 };
    41 
    49 
    42 static inline uint TileX(TileIndex tile)
    50 static inline uint TileX(TileIndex tile)