#include <Backgrounds.hpp>
Inheritance diagram for TileManagerBase:

Public Member Functions | |
| TileManagerBase (TileManagerScreen screen, int tile_index, int map_index, TileManagerColors bg_colors, int bg_num) | |
| Main constructor simply records user setting for later use by load. | |
| virtual | ~TileManagerBase () |
| Simple destructor. | |
| virtual uint32 | displayCr (void) const |
| Returns the value to OR (|) into other values related to this background. Primarily, it enables the display of the appropriate background based on the background number specified to the constructor. | |
| virtual TileErrorCode | prepare (const uint16 *tile_data, uint32 bytes_of_tiles, const uint16 *palette_data, uint32 bytes_of_palette) |
| Stores the information provided by the user for use later when using load to move the data into video memory. | |
| virtual TileErrorCode | load (void) |
| Calling this routine actually loads the prepared tiles and palette into memory. | |
| uint16 * | map (void) |
| Provides public access to the map. Alternatively use one of the subclasses for "nicer" tile usage. | |
Protected Member Functions | |
| TileErrorCode | loadTileData (const uint16 *data, uint32 bytes_of_data) |
| Copies bytes_of_data starting at data into the graphics memory for this tileset. | |
| TileErrorCode | loadPalette (const uint16 *data, uint32 bytes_of_data) |
| Copies bytes_of_data starting at data into the color palette for this tileset. | |
| uint16 * | copy16 (uint16 *dest, const uint16 *src, uint32 bytes_of_data) |
Protected Attributes | |
| TileManagerScreen | _bg_screen |
| Records the screen to use for this tileset. Either TOP_SCREEN or BOTTOM_SCREEN. | |
| int | _tile_index |
| The index to use to determine where to store the tile data in memory. | |
| int | _map_index |
| The index to use to determine where the screen map is in memory. | |
| int | _bg_num |
| The background number in use. Values are 0-3. | |
| TileManagerColors | _bg_colors |
| The type of palette in use with the tileset. Can be either COLORS_16 for a 16 color palette, or COLORS_256 if the tileset uses a 256 color palette. | |
| uint16 * | _bg_tiles |
| A pointer to the location in memory to store the graphics data. | |
| uint16 * | _bg_map |
| A pointer to the location in memory where the screen map may be accessed. | |
| uint16 * | _bg_palette |
| A pointer to the location in memory to store the color palette for the tiles. | |
| const uint16 * | _bg_tile_data |
| A pointer to the memory specified by the application which is the source of the tile graphics. | |
| uint32 | _bg_tile_data_size |
| The number of bytes associated with the tile data. | |
| const uint16 * | _bg_palette_data |
| A pointer to the memory specified by the application which is the source of the color palette for the tiles. | |
| uint32 | _bg_palette_data_size |
| The number of bytes associated with the palette data. | |
|
||||||||||||||||||||||||
|
Main constructor simply records user setting for later use by load.
|
|
||||||||||||||||||||
|
Stores the information provided by the user for use later when using load to move the data into video memory.
|
|
|
Calling this routine actually loads the prepared tiles and palette into memory.
Reimplemented in TextMap. |
|
|
Provides public access to the map. Alternatively use one of the subclasses for "nicer" tile usage.
|
|
||||||||||||
|
Copies bytes_of_data starting at data into the graphics memory for this tileset.
|
|
||||||||||||
|
Copies bytes_of_data starting at data into the color palette for this tileset.
|
|
||||||||||||||||
|
Copies bytes_of_data bytes from src to dest 16 bits (2 bytes) at a time.
|
1.3.6