- void DrawDigit(int digit, SDL_Surface *dest, geometry::Point<int> position) const;
- void DrawNumber(int number, SDL_Surface *dest, geometry::Point<int> position, int digits = 0) const;
+ void DrawChar(char c, SDL_Surface *dest, geometry::Point<int> position) const;
+ void DrawString(const char *s, SDL_Surface *dest, geometry::Point<int> position, int maxChars = 0) const;
+ void DrawDigit(int d, SDL_Surface *dest, geometry::Point<int> position) const;
+ void DrawNumber(int n, SDL_Surface *dest, geometry::Point<int> position, int digits = 0) const;
+
+public:
+ bool HasChar(char c) const { return map[(unsigned char)c].mapped; };
+ void MapChar(char c, int col, int row) { map[(unsigned char)c].mapped = true; map[(unsigned char)c].col = col; map[(unsigned char)c].row = row; };
+ void MapRange(char from, char to, int colStart, int row) {
+ int col(colStart);
+ for (unsigned char c(from); c <= to; ++c, ++col) {
+ MapChar(c, col, row);
+ }
+ }