31 lines
484 B
C
31 lines
484 B
C
#ifndef PLAYER_H
|
|
#define PLAYER_H
|
|
|
|
#include "../entity.h"
|
|
#include "../../client_source/client.h"
|
|
#include "../world.h"
|
|
|
|
typedef struct {
|
|
int holding;
|
|
int class;
|
|
|
|
int health;
|
|
int ac;
|
|
int str;
|
|
int wis;
|
|
int dex;
|
|
client* cli;
|
|
|
|
|
|
int invintory[30];
|
|
} player;
|
|
|
|
entity* CreatePlayer(const char* username, client* cli ,world* w);
|
|
|
|
int PlayerServerUpdate(void*);
|
|
int PlayerClientUpdate(int, void*);
|
|
int PlayerInit(void*);
|
|
int PlayerFree(void*);
|
|
|
|
#endif
|