| Overridables |
| BltTile | Internal function to blt a tile to the screen. |
| BltTileTrans | Internal function to blt a tile transparently to the screen. |
| Clear | Clears out the map and sets all the map tiles to 0. |
| Create | Creates a new map. |
| Draw | Draws the map to the surface pointed to by lpDDS. |
| DrawClipped | Draws the map to the surface pointed to by lpDDS. |
| DrawTrans | Draws the map to the surface pointed to by lpDDS with transparent tiles. |
| Fill | Fills the map with a tile specified by TileNum. |
| GetCell | This gets the CDXMapCell object from the map at the given MapX and MapY coordinates. |
| GetTile | Returns the value of the tile at MapX, MapY. |
| GetTileCoord | This returns a RECT struct containing the coordinates of any tile in the map relative to screen coordinates. |
| InitData | Initializes the array of data with the specified fill value. |
| Load | Loads a map from a file. |
| LoadTiles | Loads a different set of tiles to the map. |
| MoveTo | Set the position in the map. |
| Save | Saves a map to a file. |
| ScreenTileSize | Sets the screen tile width and screen tile height. |
| ScrollDown | Scroll the map down by the offset passed in. |
| ScrollLeft | Scroll the map left by the offset passed in. |
| ScrollRight | Scroll the map right by the offset passed in. |
| ScrollUp | Scroll the map upwards by the offset passed in. |
| SetTile | Sets the value of the tile at MapX, MapY. |
| SetViewPort | Sets the top left coordinates of the viewport and sets the screen width and height in map units. |
| WrapScrollDown | Scroll the map down by the offset passed in. |
| WrapScrollLeft | Scroll the map left by the offset passed in. |
| WrapScrollRight | Scroll the map right by the offset passed in. |
| WrapScrollUp | Scroll the map up by the offset passed in. |
| | |
| Data Members | |
| public |
| CDXMapCell* DATA; | Pointer to the CDXMapCell object for tiles. |
| int SCREEN_H; | Screen pixel height, from CDXScreen pointer. |
| int SCREEN_TH; | Number of tiles high on screen. |
| int SCREEN_TW; | Number of tiles wide on screen. |
| int SCREEN_W; | Screen pixel width, from CDXScreen pointer. |
| int SIZE; | Map size, width * height. |
| CDXScreen* Screen; | Pointer to the CDXScreen object. |
| CDXTile* Tiles; | Pointer to the CDXTile object. |
| int m_Height; | The map height in map units. |
| int m_PixelHeight; | The height of the map in pixels. |
| int m_PixelWidth; | The width of the map in pixels. |
| int m_PosX; | The current map X position in pixels. |
| int m_PosY; | The current map Y position in pixels. |
| int m_TileHeight; | Tile height in pixels, from the CDXTile pointer. |
| int m_TileWidth; | Tile width in pixels, from the CDXTile pointer. |
| int m_ViewportX; | The starting X position of the Viewport. |
| int m_ViewportY; | The starting Y position of the Viewport. |
| int m_Width; | The map width in map units. |