Changing Project Structure

This commit is contained in:
2026-04-26 13:48:26 -04:00
parent 3607c4bf36
commit 8a4812973c
9 changed files with 8 additions and 10 deletions

34
include/game.h Normal file
View File

@@ -0,0 +1,34 @@
#ifndef GAME_H
#define GAME_H 1
#include "network/networking.h"
// Setup game board
#define TOP_ROW 4
#define BOT_ROW 21
#define LEFT_COL 9
#define RIGHT_COL 70
typedef struct
{
int host;
int playerNumber;
char* domain;
int port;
} GameData;
void SetupTermWin();
void CloseTermWin();
void CreateGameServer(Server* serv,GameData*gd);
void RunGameClient(Client* c);
void DrawWalls(GameData);
void DrawHeader(GameData);
void MGameAlert(int y, int x, char* str);
void GameAlert(char* str);
#endif