GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
deck_types.h File Reference

Functions related to the different types of Decks. More...

#include "graphic_utils.h"

Go to the source code of this file.

Macros

#define DECK_SPRITES_PB   1
 
#define DECK_NAME_LENGTH   14
 
#define DECK_DESC_WIDTH   DECK_NAME_LENGTH
 
#define DECK_DESC_HEIGHT   5
 

Enumerations

enum  DeckType {
  DECK_TYPE_RED , DECK_TYPE_BLUE , DECK_TYPE_YELLOW , DECK_TYPE_GREEN ,
  DECK_TYPE_BLACK , DECK_TYPE_PAINTED , DECK_TYPE_MAX
}
 

Functions

void print_deck_name (enum DeckType deck, BG_POINT pos)
 Prints the Deck name string to the screen at the given position.
 
void print_deck_description (enum DeckType deck, BG_POINT pos)
 Prints the Deck description string to the screen at the given position.
 

Detailed Description

Functions related to the different types of Decks.

Definition in file deck_types.h.

Macro Definition Documentation

◆ DECK_DESC_HEIGHT

#define DECK_DESC_HEIGHT   5

Definition at line 15 of file deck_types.h.

◆ DECK_DESC_WIDTH

#define DECK_DESC_WIDTH   DECK_NAME_LENGTH

Definition at line 14 of file deck_types.h.

◆ DECK_NAME_LENGTH

#define DECK_NAME_LENGTH   14

Definition at line 13 of file deck_types.h.

◆ DECK_SPRITES_PB

#define DECK_SPRITES_PB   1

Definition at line 11 of file deck_types.h.

Enumeration Type Documentation

◆ DeckType

enum DeckType

Definition at line 17 of file deck_types.h.

Function Documentation

◆ print_deck_description()

void print_deck_description ( enum DeckType  deck,
BG_POINT  pos 
)

Prints the Deck description string to the screen at the given position.

Parameters
deckDeckType we want the description of.
posscreen position in pixels of the top-left corner of the rectangle we'll print the Deck description into

Definition at line 48 of file deck_types.c.

◆ print_deck_name()

void print_deck_name ( enum DeckType  deck,
BG_POINT  pos 
)

Prints the Deck name string to the screen at the given position.

Parameters
deckDecktype we want the name of.
posscreen position in pixels to print the name at.

Definition at line 43 of file deck_types.c.