equal
deleted
inserted
replaced
6 enum { |
6 enum { |
7 HQ_NUM_TILE = 4, |
7 HQ_NUM_TILE = 4, |
8 HQ_NUM_SIZE = 5 |
8 HQ_NUM_SIZE = 5 |
9 }; |
9 }; |
10 |
10 |
11 typedef enum UnmovableType { |
11 enum UnmovableType { |
12 UNMOVABLE_TRANSMITTER = 0, |
12 UNMOVABLE_TRANSMITTER = 0, |
13 UNMOVABLE_LIGHTHOUSE = 1, |
13 UNMOVABLE_LIGHTHOUSE = 1, |
14 UNMOVABLE_STATUE = 2, |
14 UNMOVABLE_STATUE = 2, |
15 UNMOVABLE_OWNED_LAND = 3, |
15 UNMOVABLE_OWNED_LAND = 3, |
16 UNMOVABLE_HQ_NORTH = 0x80, |
16 UNMOVABLE_HQ_NORTH = 0x80, |
17 UNMOVABLE_HQ_WEST = 0x81, |
17 UNMOVABLE_HQ_WEST = 0x81, |
18 UNMOVABLE_HQ_EAST = 0x82, |
18 UNMOVABLE_HQ_EAST = 0x82, |
19 UNMOVABLE_HQ_SOUTH = 0x83, |
19 UNMOVABLE_HQ_SOUTH = 0x83, |
20 |
20 |
21 UNMOVABLE_HQ_END = UNMOVABLE_HQ_NORTH + HQ_NUM_SIZE * HQ_NUM_TILE |
21 UNMOVABLE_HQ_END = UNMOVABLE_HQ_NORTH + HQ_NUM_SIZE * HQ_NUM_TILE |
22 } UnmovableType; |
22 }; |
23 |
23 |
24 |
24 |
25 |
25 |
26 static inline UnmovableType GetUnmovableType(TileIndex t) |
26 static inline UnmovableType GetUnmovableType(TileIndex t) |
27 { |
27 { |