2025-01-03 21:24:56 -05:00
|
|
|
#ifndef _FD_ROOM_
|
|
|
|
#define _FD_ROOM_
|
|
|
|
|
|
|
|
typedef struct Room Room;
|
2025-01-04 04:45:44 -05:00
|
|
|
typedef struct Rooms Rooms;
|
2025-01-03 21:24:56 -05:00
|
|
|
|
2025-01-19 18:18:48 -05:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2025-01-03 21:24:56 -05:00
|
|
|
struct Room {
|
|
|
|
char *name;
|
2025-01-19 18:18:48 -05:00
|
|
|
bool visited;
|
2025-01-03 21:24:56 -05:00
|
|
|
};
|
|
|
|
|
2025-01-04 04:45:44 -05:00
|
|
|
struct Rooms {
|
|
|
|
Room rooms[100];
|
|
|
|
int count;
|
|
|
|
};
|
|
|
|
|
2025-01-04 05:01:06 -05:00
|
|
|
void free_room(Room r);
|
|
|
|
void free_rooms(Rooms r);
|
2025-01-05 17:18:51 -05:00
|
|
|
Room *find_room(Rooms *r, const char *name);
|
2025-01-04 05:01:06 -05:00
|
|
|
|
2025-01-03 21:24:56 -05:00
|
|
|
#endif
|