summaryrefslogtreecommitdiff
path: root/games/phantasia/oldplayer.h
blob: 175ea73e6a259cb34585609a356d0e42610e2d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*	$OpenBSD: oldplayer.h,v 1.2 2001/01/28 23:41:47 niklas Exp $	*/
/*	$NetBSD: oldplayer.h,v 1.2 1995/03/24 03:59:09 cgd Exp $	*/

/*
 * oldplayer.h - old player structure
 */

struct	oldplayer	    	/* player statistics */
    {
    char	o_name[21];	/* name */
    char	o_password[9];	/* password */
    char	o_login[10];	/* login */
    double	o_x;	    	/* x coord */
    double	o_y;	    	/* y coord */
    double	o_experience;	/* experience */
    int		o_level;    	/* level */
    short	o_quickness;	/* quickness */
    double	o_strength;	/* strength */
    double	o_sin;		/* sin */
    double	o_mana;		/* mana */
    double	o_gold;		/* gold */
    double	o_energy;	/* energy */
    double	o_maxenergy;	/* maximum energy */
    double	o_magiclvl;	/* magic level */
    double	o_brains;	/* brains */
    short	o_crowns;	/* crowns */
    struct
	{
	short	ring_type;	/* type of ring */
	short	ring_duration;	/* duration of ring */
	}	o_ring;	    	/* ring stuff */
    bool	o_palantir;	/* palantir */
    double	o_poison;	/* poison */
    short	o_holywater;   	/* holy water */
    short	o_amulets;	/* amulets */
    bool	o_blessing;	/* blessing */
    short	o_charms;	/* charms */
    double	o_gems;		/* gems */
    short	o_quksilver;	/* quicksilver */
    double	o_sword;	/* sword */
    double	o_shield;	/* shield */
    short	o_type;		/* character type */
    bool	o_virgin;	/* virgin */
    short	o_lastused;	/* day of year last used */
    short	o_status;	/* playing, cloaked, etc. */
    short	o_tampered;	/* decree'd, etc. flag */
    double	o_1scratch,
		o_2scratch;	/* variables used for decree, player battle */
    bool	o_blindness;	/* blindness */
    int		o_notused;   	/* not used */
    long	o_age;		/* age in seconds */
    short	o_degenerated;	/* age/2500 last degenerated */
    short	o_istat;	/* used for inter-terminal battle */
#ifdef PHANTPLUS
    short	o_lives;
#endif
    };