]>
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 char *name
; // Player's Name
21 int level
; // Player's level (1-12)
22 long int exp
; // Player's experience
23 long int gold
; // Gold on hand
24 long int bank
; // Gold in the bank
25 int hp
; // Current Hit Points (health)
26 int maxhp
; // Maximum Hit Points
27 int strength
; // Player's Strength
28 int defense
; // Player's defensive strength
29 int armor
; // Number for the player's armor
30 int weapon
; // Number for the player's weapon
31 bool alive
; // True/False: is the player alive?
32 bool started
; // True/False: has this player started? -Possibly deprecated
33 bool yourturn
; // True/False: is it your turn in battle?
34 int forest_fights
; // Amount of forest fights left today
35 int player_fights
; // Amount of player<->player fights for today
36 char *password
; // Player's encrypted password
38 aClient
*user
; // Pointer to the aClient this player is from
39 Monster
*fight
; // Pointer to the monster the player is currently fighting
40 Monster
*master
; // Pointer to the master the player is currently fighting
41 aClient
*battle
; // Pointer to the player this player is currently fighting
48 char *name
; // The monster's name
49 char *weapon
; // A name for their weapon. Doesn't have to be in weapons[]
50 int strength
; // Their strength
51 int gold
; // The gold you get when you kill them
52 int exp
; // The experience you get when you kill them
53 int hp
; // Their remaining hitpoints
54 int maxhp
; // Their max hitpoints
55 char *death
; // What is said when they die