#include <map.h>
Collaboration diagram for hoa_map::MapTile:

Public Member Functions | |
| MapTile (int16 lower, int16 middle, int16 upper) | |
| MapTile () | |
Public Attributes | |
Tile Layer Indeces | |
Indeces to MapMode::_tile_images, mapping to the three tile layers.
| |
| int16 | lower_layer |
| int16 | middle_layer |
| int16 | upper_layer |
****************************************************************************
The images that a tile uses are not stored within this class. They are stored in the MapMode::_tile_images vector, and this class contains three indices to images in that vector. This class also does not contain any information about walkability. That information is kept in a seperate vector in the MapMode class.
The coordinate system in MapMode is in terms of tiles. Specifically, the screen is defined to be 32 tile columns wide and 24 tile rows high. Using 32x32 tile images, this corresponds to a screen resolution of 1024x768, which is the default screen resolution of Allacrost. The origin [0.0f, 0.0f] is the top-left corner of the screen and the bottom-right corner coordinates are [32.0f, 24.0f]. Both map tiles and map objects in Allacrost are drawn on the screen using the bottom middle of the image as its reference point.
Definition at line 228 of file map.h.
| hoa_map::MapTile::MapTile | ( | ) | [inline] |
1.5.1