OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
board.h File Reference
#include <snes.h>

Go to the source code of this file.

Classes

struct  LineClearResult

Macros

#define BOARD_ROWS   24 /* full board: rows 0-23 (0-3 hidden spawn, 4-23 visible) */
#define BOARD_W   10
#define VISIBLE_TOP   4 /* first visible row (standard 20 visible rows) */

Functions

u8 boardCheckCollision (u8 type, u8 rot, s8 row, s8 col)
void boardClear (void)
u8 boardFindFullLines (LineClearResult *result)
u8 boardGetCell (u8 row, u8 col)
void boardLockPiece (u8 type, u8 rot, s8 row, s8 col)
void boardRemoveLines (LineClearResult *result)

Macro Definition Documentation

◆ BOARD_ROWS

#define BOARD_ROWS   24 /* full board: rows 0-23 (0-3 hidden spawn, 4-23 visible) */

◆ BOARD_W

#define BOARD_W   10

◆ VISIBLE_TOP

#define VISIBLE_TOP   4 /* first visible row (standard 20 visible rows) */

Function Documentation

◆ boardCheckCollision()

u8 boardCheckCollision ( u8 type,
u8 rot,
s8 row,
s8 col )

◆ boardClear()

void boardClear ( void )

◆ boardFindFullLines()

u8 boardFindFullLines ( LineClearResult * result)

◆ boardGetCell()

u8 boardGetCell ( u8 row,
u8 col )

◆ boardLockPiece()

void boardLockPiece ( u8 type,
u8 rot,
s8 row,
s8 col )

◆ boardRemoveLines()

void boardRemoveLines ( LineClearResult * result)