]>
jfr.im git - irc/gameservirc.git/blob - gameserv/player.h
8 typedef struct monster_ Monster
;
10 class aClient
; // forward declaration
14 Player(aClient
*user
= NULL
);
17 void setData(Player
*);
20 const Player
&operator=(const Player
&);
21 char *name
; // Player's Name
22 int level
; // Player's level (1-12)
23 long int exp
; // Player's experience
24 long int gold
; // Gold on hand
25 long int bank
; // Gold in the bank
26 int hp
; // Current Hit Points (health)
27 int maxhp
; // Maximum Hit Points
28 int strength
; // Player's Strength
29 int defense
; // Player's defensive strength
30 int armor
; // Number for the player's armor
31 int weapon
; // Number for the player's weapon
32 bool alive
; // True/False: is the player alive?
33 bool started
; // True/False: has this player started? -Possibly deprecated
34 bool yourturn
; // True/False: is it your turn in battle?
35 int forest_fights
; // Amount of forest fights left today
36 int player_fights
; // Amount of player<->player fights for today
37 char *password
; // Player's encrypted password
39 aClient
*user
; // Pointer to the aClient this player is from
40 Monster
*fight
; // Pointer to the monster the player is currently fighting
41 Monster
*master
; // Pointer to the master the player is currently fighting
42 aClient
*battle
; // Pointer to the player this player is currently fighting
46 char *name
; // The monster's name
47 char *weapon
; // A name for their weapon. Doesn't have to be in weapons[]
48 int strength
; // Their strength
49 int gold
; // The gold you get when you kill them
50 int exp
; // The experience you get when you kill them
51 int hp
; // Their remaining hitpoints
52 int maxhp
; // Their max hitpoints
53 char *death
; // What is said when they die