42 uint16 value1, value2;
44 MSMIcon(): icon(0), x(0), y(0), dir(0), level(0), value1(0), value2(0) {
78 bool loadMap(
char *name);
82 void drawForegrounds();
88 bool onScreen(
int x,
int y);
90 return _width * kTileWidth;
92 int mapPixelHeight() {
93 return _height * kTileHeight;
96 uint32 getMapBGTileFlags(
int x,
int y);
97 uint32 getMapFGTileFlags(
int x,
int y);
98 int16 getMapBGTileIndex(
int x,
int y);
99 int16 getMapFGTileIndex(
int x,
int y);
100 void setMapBGTileIndex(
int x,
int y,
int index);
101 void setMapFGTileIndex(
int x,
int y,
int index);
102 void addBGTileAnimation(
int x,
int y);
103 void addFGTileAnimation(
int x,
int y);
104 void removeBGTileAnimation(
int x,
int y);
105 void removeFGTileAnimation(
int x,
int y);
107 void getMapXY(
int *x,
int *y);
108 void setMapXY(
int x,
int y);
109 void centerMapXY(
int x,
int y);
111 bool checkXYOnScreen(
int x,
int y);
114 bool checkOneTileExistInRange(
int tileIndex,
int count);
116 bool explosionExist(
int x,
int y) {
117 return _mapExplosions[y * _width + x];
119 void setExplosion(
int x,
int y,
int value) {
120 _mapExplosions[y * _width + x] = value;
123 bool boomBarrelExist(
int x,
int y) {
124 return _mapExpBarrels[y * _width + x];
126 void setBoomBarrel(
int x,
int y,
int value) {
127 _mapExpBarrels[y * _width + x] = value;
130 bool laserBeamExist(
int x,
int y) {
131 return _mapLaserBeams[y * _width + x];
133 void setLaserBeam(
int x,
int y,
int value) {
134 _mapLaserBeams[y * _width + x] = value;
136 void clearLaserBeams() {
137 uint size = _width * _height;
138 memset(_mapLaserBeams, 0, size);
144 int _screenTileWidth;
145 int _screenTileHeight;
147 uint16 _width, _height;
149 int _mapTileX, _mapTileY;
150 int _mapTileXOff, _mapTileYOff;
152 Foreground _gratings[kMaxGratings], _foregrounds[kMaxForegrounds];
153 int _numGratings, _numForegrounds;
165 uint32 _backgroundOffset;
166 uint32 _foregroundOffset;
168 uint32 _iconListOffset;
170 uint32 _infoListOffset;
176 byte *_mapExplosions;
177 byte *_mapExpBarrels;
178 byte *_mapLaserBeams;
Definition: ai-player.h:25
Definition: savefile.h:54