12#define TTE_COLOR_TEXT_FORMAT "#{cx:0x%X000}%s"
17static const char DECK_NAMES[DECK_TYPE_MAX][DECK_NAME_LENGTH] = {
33typedef void (*PrintDescCallback)(BG_POINT);
34static const PrintDescCallback deck_description_functions[DECK_TYPE_MAX] = {
45 tte_printf(
"#{P:%d,%d; cx:0x%X000}%s", pos.x, pos.y, TTE_WHITE_PB,
DECK_NAMES[deck]);
50 if (deck_description_functions[deck] == NULL)
53 deck_description_functions[deck](pos);
65 tte_printf(
"#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT, pos_x, pos_y, TTE_BLACK_PB,
" ");
83 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
92 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT,
117 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
126 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT,
151 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT,
158 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
183 tte_printf(
"#{P:%d,%d; cx:0x%X000}%s", pos.x, pos.y, TTE_BLACK_PB,
"End of Round:");
186 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT
187 TTE_COLOR_TEXT_FORMAT,
200 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT
201 TTE_COLOR_TEXT_FORMAT,
214 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
238 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
248 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
257 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT,
281 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
290 "#{P:%d,%d}" TTE_COLOR_TEXT_FORMAT TTE_COLOR_TEXT_FORMAT,
static void print_desc_yellow_deck(BG_POINT pos)
Print the decription of the Yellow Deck.
void print_deck_name(enum DeckType deck, BG_POINT pos)
Prints the Deck name string to the screen at the given position.
static void print_desc_black_deck(BG_POINT pos)
Print the decription of the Black Deck.
static void print_empty_desc_line(int pos_x, int pos_y)
Print an empty string of 13 characters long at given coordinates. Reduces boilerplate in deck descrip...
static void print_desc_painted_deck(BG_POINT pos)
Print the decription of the Painted Deck.
static void print_desc_blue_deck(BG_POINT pos)
Print the decription of the Blue Deck.
static void print_desc_green_deck(BG_POINT pos)
Print the decription of the Green Deck.
static const char DECK_NAMES[DECK_TYPE_MAX][DECK_NAME_LENGTH]
List of DeckType names, all formatted to be centered in a string of 13 characters.
static void print_desc_red_deck(BG_POINT pos)
Print the decription of the Red Deck.
void print_deck_description(enum DeckType deck, BG_POINT pos)
Prints the Deck description string to the screen at the given position.
Functions related to the different types of Decks.
#define TILE_SIZE
Tile size in pixels, both height and width as tiles are square.