xTetris-Game
|
#include <stdio.h>
#include <wchar.h>
#include "printGame.h"
#include "common.h"
#include "definitions.h"
#include "struct.h"
Go to the source code of this file.
Functions | |
void | printSpacing () |
Print spaces between the two boards. | |
void | printPlayersName (int points_1, int points_2, int mode) |
Print players' name. | |
void | printBoard (BoardPtr mat_1, BoardPtr mat_2, int points_1, int points_2, int mode) |
Print the game with object in the terminal. | |
void | gameOver (int points_1, int points_2, int mode) |
Print end screen result. | |
void | printTetrominoes (TetrominoPtr parts) |
Print all tetrominoes shapes. | |
void gameOver | ( | int | points_1, |
int | points_2, | ||
int | mode ) |
Print end screen result.
[in] | points_1 | Points value of player 1. |
[in] | points_2 | Points value of player 2 ( or bot, depending on match mode). |
[in] | mode | Singleplayer or Multiplayer (0 or 1). |
Definition at line 80 of file printGame.c.
Print the game with object in the terminal.
[in] | mat_1 | Pointer of struct board of player 1. |
[in] | mat_2 | Pointer of struct board of player 2. |
[in] | points_1 | Points value of player 1. |
[in] | points_2 | Points value of player 2 ( or bot, depending on match mode). |
[in] | mode | Singleplayer or Multiplayer (0 or 1). |
Definition at line 38 of file printGame.c.
void printPlayersName | ( | int | points_1, |
int | points_2, | ||
int | mode ) |
Print players' name.
[in] | points_1 | Points value of player 1. |
[in] | points_2 | Points value of player 2 ( or bot, depending on match mode). |
[in] | mode | Singleplayer or Multiplayer (0 or 1). |
Definition at line 18 of file printGame.c.
void printSpacing | ( | ) |
Print spaces between the two boards.
Definition at line 10 of file printGame.c.
void printTetrominoes | ( | TetrominoPtr | parts | ) |
Print all tetrominoes shapes.
[in] | parts | Struct containing all possible tetrominoes' shapes. |
Definition at line 114 of file printGame.c.