#ifndef __PLAYER_H
#define __PLAYER_H

// characters stances
#define N_R     0
#define N_STAND 1
#define N_L     2
#define N_SIT   3
#define E_R     4
#define E_STAND 5
#define E_L     6
#define E_SIT   7
#define S_R     8
#define S_STAND 9
#define S_L     10
#define S_SIT   11
#define W_R     12
#define W_STAND 13
#define W_L     14
#define W_SIT   15

// defines player attributes
typedef struct pl_attr {
  int life, mana;   // main attributes
	float intl;       // inteligence
	float str;        // strength
	float dext;       // dexterety
	float con;        // constitution
	float cha;        // charisma
	float wis;        // wisdom
	float ac;         // armour class
} pl_stats;

// defines a player character
typedef struct player {
	char *name;             // player name
	int avatar_num;         // avatar
	int stance;             // avatar stance
	struct pl_attr *attr;   // attributes
	struct object *backpack;// backpack objectlist
	BITMAP *BMP;            // avatar bmp
} player;

void player_draw(player *p);
void player_init(player *p);
int player_move(player *p, int x, int y);
#endif
