aboutsummaryrefslogtreecommitdiff
path: root/src/game.h
blob: a092508f21a80f48ccfc42c26afc50d631a06c33 (plain) (blame)
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
/*
 * =====================================================================================
 *
 *       Filename:  game.h
 *
 *    Description: Types and prototypes for the global action request tracker 
 *
 *        Version:  1.0
 *        Created:  01/31/2022 11:55:50 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Cara Salter <cara@devcara.com>, 
 *   Organization:  
 *
 * =====================================================================================
 */

#include <pthread.h>
#include "login.h"

#ifndef _GAME_H
#define _GAME_H

typedef enum RequestType {
    MoveTo,
    Attack,
} RequestType;

typedef struct Request{
    RequestType type;
    struct Request* nxt;
} Request;

typedef struct {
    pthread_mutex_t lock;
    Request* queue_start;

} Game;
void init_game();
#endif