-
Notifications
You must be signed in to change notification settings - Fork 10
/
tiles.h
82 lines (75 loc) · 1.84 KB
/
tiles.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* tiles.h
* XBolo
*
* Created by Robert Chrzanowski on 10/11/09.
* Copyright 2009 Robert Chrzanowski. All rights reserved.
*
*/
#ifndef __TILES__
#define __TILES__
enum {
kWallTile = 0,
kRiverTile = 1,
kSwampTile = 2,
kCraterTile = 3,
kRoadTile = 4,
kForestTile = 5,
kRubbleTile = 6,
kGrassTile = 7,
kDamagedWallTile = 8,
kBoatTile = 9,
kMinedSwampTile = 10,
kMinedCraterTile = 11,
kMinedRoadTile = 12,
kMinedForestTile = 13,
kMinedRubbleTile = 14,
kMinedGrassTile = 15,
kSeaTile,
kMinedSeaTile,
kFriendlyBaseTile,
kHostileBaseTile,
kNeutralBaseTile,
kFriendlyPill00Tile,
kFriendlyPill01Tile,
kFriendlyPill02Tile,
kFriendlyPill03Tile,
kFriendlyPill04Tile,
kFriendlyPill05Tile,
kFriendlyPill06Tile,
kFriendlyPill07Tile,
kFriendlyPill08Tile,
kFriendlyPill09Tile,
kFriendlyPill10Tile,
kFriendlyPill11Tile,
kFriendlyPill12Tile,
kFriendlyPill13Tile,
kFriendlyPill14Tile,
kFriendlyPill15Tile,
kHostilePill00Tile,
kHostilePill01Tile,
kHostilePill02Tile,
kHostilePill03Tile,
kHostilePill04Tile,
kHostilePill05Tile,
kHostilePill06Tile,
kHostilePill07Tile,
kHostilePill08Tile,
kHostilePill09Tile,
kHostilePill10Tile,
kHostilePill11Tile,
kHostilePill12Tile,
kHostilePill13Tile,
kHostilePill14Tile,
kHostilePill15Tile,
kUnknownTile,
} ;
int isForestLikeTile(int tiles[][256], int x, int y);
int isCraterLikeTile(int tiles[][256], int x, int y);
int isRoadLikeTile(int tiles[][256], int x, int y);
int isWaterLikeToLandTile(int tiles[][256], int x, int y);
int isWaterLikeToWaterTile(int tiles[][256], int x, int y);
int isWallLikeTile(int tiles[][256], int x, int y);
int isSeaLikeTile(int tiles[][256], int x, int y);
int isMinedTile(int tiles[][256], int x, int y);
#endif /* __TILES__ */