-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint_funs.h
54 lines (45 loc) · 1.11 KB
/
print_funs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Oświadczam, że niniejsza praca stanowiąca podstawę do uznania osiągnięcia efektów
* uczenia się z przedmiotu SOP1 została wykonana przeze mnie samodzielnie.
* Piotr Rogulski
* 305867
*/
#pragma once
#include <errno.h>
#include <fcntl.h>
#include <ftw.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include "types.h"
#include "util_funs.h"
/**
* Print current game state
*/
void print_game(gameState_t *game, WINDOW *win);
/**
* Print connections between the rooms.
*/
void print_table(char *table, unsigned n, WINDOW *win);
/**
* Print current player position.
*/
void print_curr_room(unsigned curr, unsigned n, WINDOW *win);
/**
* Print objects in each room.
*/
void print_objects(gameState_t *game, WINDOW *win);
/**
* Print objects in player's inventory.
*/
void print_inventory(gameState_t *game, WINDOW *win);
/**
* Print a message when all objects are in the correct room.
*/
void print_game_complete(gameState_t *game, WINDOW *win);
/**
* Print a message at the bottom of the screen.
*/
void print_msg(WINDOW *win, char *fmt, ...);