| 1234567891011121314151617181920212223242526 |
- #pragma once
- #include <stdint.h>
- #include <stdio.h>
- #include "game.h"
- #include "game_common.h"
- typedef struct {
- unsigned int screen_w;
- unsigned int screen_h;
- GameState state;
- GameShapes shapes;
- int sock;
- int conn;
- FILE *conn_s;
- } MultiPlayer;
- MultiPlayer MultiPlayer_alloc(
- const unsigned int screen_w,
- const unsigned int screen_h,
- const char *server_host,
- const uint16_t server_port
- );
- void MultiPlayer_free(MultiPlayer *const mp);
- void MultiPlayer_tick(MultiPlayer *const mp, const double delta);
|