blob: a092508f21a80f48ccfc42c26afc50d631a06c33 (
plain) (
tree)
|
|
/*
* =====================================================================================
*
* 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
|