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


Public Member Functions | |
| TextMap (TileManagerScreen screen, int tile_index, int map_index, TileManagerColors bg_colors, int bg_num=2) | |
| Simply reinvokes the base-class constructor. | |
| TileErrorCode | prepare (const uint16 *font_data, uint32 bytes_of_fonts, const uint16 *font_palette, uint32 bytes_of_palette, int font_width, int font_height) |
| Stores the information provided by the user for use later when using load to move the data into video memory. | |
| TileErrorCode | load (void) |
| Calling this routine actually loads the prepared tiles and palette into memory. Then clears the screen of any characters and sets the initial cursor location to 0,0. | |
| void | clear (void) |
| Clears the screen. | |
| int | screenWidth (void) const |
| Returns the width of the screen as the number of characters that can be displayed on a single line. | |
| int | screenHeight (void) const |
| Returns the height of the screen as the number of rows of characters that can be displayed on the screen. | |
| void | setForegroundColor (uint16 color) |
| Sets palette entry 1 to the color specified. | |
| void | setBackgroundColor (uint16 color) |
| Sets palette entry 0 to the color specified. | |
| TileErrorCode | setCursorPosition (int x, int y) |
| Sets the cursor x/y position as specified. | |
| int | xPos (void) const |
| Returns the current x position of the cursor. | |
| int | yPos (void) const |
| Returns the current y position of the cursor. | |
| TextMap & | operator<< (const char *msg) |
| Print a text string onto the screen. | |
| TextMap & | operator<< (char c) |
| Print a character onto the screen. | |
| TextMap & | operator<< (uint32 n) |
| Print an unsigned number onto the screen. | |
| TextMap & | operator<< (int32 n) |
| Print a signed number onto the screen. | |
| void | writeString (const char *text) |
Public Attributes | |
| int | _font_width |
| Width of font in pixels. | |
| int | _font_height |
| Height of font in pixels. | |
| int | _font_tile_width |
| Width of font in tiles. | |
| int | _font_tile_height |
| Height of font in tiles. | |
| int | _font_tiles |
| Total number of tiles associated with the font. | |
| int | _screen_width |
| Width of screen in font characters. | |
| int | _screen_height |
| Height of screen in font characters. | |
| int | _cur_x |
| Current cursor x position. | |
| int | _cur_y |
| Current cursor y position. | |
| int | _radix |
| The radix of the number to output. | |
| bool | _showbase |
| Should the base be displayed? | |
| int | _tab_size |
| The number of spaces in a tab. | |
Private Types | |
| typedef TileManagerBase | inherited |
| Typedef to aid in changing class heirarchies without a lot of code change. | |
|
||||||||||||||||||||||||||||
|
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. Then clears the screen of any characters and sets the initial cursor location to 0,0.
Reimplemented from TileManagerBase. |
|
|
Returns the width of the screen as the number of characters that can be displayed on a single line.
|
|
|
Returns the height of the screen as the number of rows of characters that can be displayed on the screen.
|
|
|
Sets palette entry 1 to the color specified.
|
|
|
Sets palette entry 0 to the color specified.
|
|
||||||||||||
|
Sets the cursor x/y position as specified.
|
|
|
Print a text string onto the screen.
|
|
|
Print a character onto the screen.
|
|
|
Print an unsigned number onto the screen.
|
|
|
Print a signed number onto the screen.
|
|
|
Actually converts the string to the right characters and displays them on the screen.
|
1.3.6