Home | History | Annotate | Line # | Download | only in phantasia
phantstruct.h revision 1.1
      1  1.1  jtc /*
      2  1.1  jtc  * phantstruct.h - structure definitions for Phantasia
      3  1.1  jtc  */
      4  1.1  jtc 
      5  1.1  jtc struct	player	    	/* player statistics */
      6  1.1  jtc     {
      7  1.1  jtc     double	p_experience;	/* experience */
      8  1.1  jtc     double	p_level;    	/* level */
      9  1.1  jtc     double	p_strength;	/* strength */
     10  1.1  jtc     double	p_sword;	/* sword */
     11  1.1  jtc     double	p_might;	/* effect strength */
     12  1.1  jtc     double	p_energy;	/* energy */
     13  1.1  jtc     double	p_maxenergy;	/* maximum energy */
     14  1.1  jtc     double	p_shield;	/* shield */
     15  1.1  jtc     double	p_quickness;	/* quickness */
     16  1.1  jtc     double	p_quksilver;	/* quicksilver */
     17  1.1  jtc     double	p_speed;	/* effective quickness */
     18  1.1  jtc     double	p_magiclvl;	/* magic level */
     19  1.1  jtc     double	p_mana;		/* mana */
     20  1.1  jtc     double	p_brains;	/* brains */
     21  1.1  jtc     double	p_poison;	/* poison */
     22  1.1  jtc     double	p_gold;		/* gold */
     23  1.1  jtc     double	p_gems;		/* gems */
     24  1.1  jtc     double	p_sin;		/* sin */
     25  1.1  jtc     double	p_x;	    	/* x coord */
     26  1.1  jtc     double	p_y;	    	/* y coord */
     27  1.1  jtc     double	p_1scratch,
     28  1.1  jtc 		p_2scratch;	/* variables used for decree, player battle */
     29  1.1  jtc 
     30  1.1  jtc     struct
     31  1.1  jtc 	{
     32  1.1  jtc 	short	ring_type;	/* type of ring */
     33  1.1  jtc 	short	ring_duration;	/* duration of ring */
     34  1.1  jtc 	bool	ring_inuse;	/* ring in use flag */
     35  1.1  jtc 	}	p_ring;	    	/* ring stuff */
     36  1.1  jtc 
     37  1.1  jtc     long	p_age;		/* age of player */
     38  1.1  jtc 
     39  1.1  jtc     int		p_degenerated;	/* age/3000 last degenerated */
     40  1.1  jtc 
     41  1.1  jtc     short	p_type;		/* character type */
     42  1.1  jtc     short	p_specialtype;	/* special character type */
     43  1.1  jtc     short	p_lives;	/* multiple lives for council, valar */
     44  1.1  jtc     short	p_crowns;	/* crowns */
     45  1.1  jtc     short	p_charms;	/* charms */
     46  1.1  jtc     short	p_amulets;	/* amulets */
     47  1.1  jtc     short	p_holywater;   	/* holy water */
     48  1.1  jtc     short	p_lastused;	/* day of year last used */
     49  1.1  jtc     short	p_status;	/* playing, cloaked, etc. */
     50  1.1  jtc     short	p_tampered;	/* decree'd, etc. flag */
     51  1.1  jtc     short	p_istat;	/* used for inter-terminal battle */
     52  1.1  jtc 
     53  1.1  jtc     bool	p_palantir;	/* palantir */
     54  1.1  jtc     bool	p_blessing;	/* blessing */
     55  1.1  jtc     bool	p_virgin;	/* virgin */
     56  1.1  jtc     bool	p_blindness;	/* blindness */
     57  1.1  jtc 
     58  1.1  jtc     char	p_name[SZ_NAME];	/* name */
     59  1.1  jtc     char	p_password[SZ_PASSWORD];/* password */
     60  1.1  jtc     char	p_login[SZ_LOGIN];	/* login */
     61  1.1  jtc     };
     62  1.1  jtc 
     63  1.1  jtc struct	monster	    	/* monster stats */
     64  1.1  jtc     {
     65  1.1  jtc     double	m_strength;	/* strength */
     66  1.1  jtc     double	m_brains;	/* brains */
     67  1.1  jtc     double	m_speed;	/* speed */
     68  1.1  jtc     double	m_energy;	/* energy */
     69  1.1  jtc     double	m_experience;	/* experience */
     70  1.1  jtc     double	m_flock;    	/* % chance of flocking */
     71  1.1  jtc 
     72  1.1  jtc     double	m_o_strength;	/* original strength */
     73  1.1  jtc     double	m_o_speed;	/* original speed */
     74  1.1  jtc     double	m_maxspeed;	/* maximum speed */
     75  1.1  jtc     double	m_o_energy;	/* original energy */
     76  1.1  jtc     double	m_melee;	/* melee damage */
     77  1.1  jtc     double	m_skirmish;	/* skirmish damage */
     78  1.1  jtc 
     79  1.1  jtc     int		m_treasuretype;	/* treasure type */
     80  1.1  jtc     int		m_type;	    	/* special type */
     81  1.1  jtc 
     82  1.1  jtc     char	m_name[26];	/* name */
     83  1.1  jtc     };
     84  1.1  jtc 
     85  1.1  jtc struct	energyvoid     	/* energy void */
     86  1.1  jtc     {
     87  1.1  jtc     double	ev_x;		/* x coordinate */
     88  1.1  jtc     double	ev_y;		/* y coordinate */
     89  1.1  jtc     bool	ev_active;	/* active or not */
     90  1.1  jtc     };
     91  1.1  jtc 
     92  1.1  jtc struct	scoreboard			/* scoreboard entry */
     93  1.1  jtc     {
     94  1.1  jtc     double	sb_level;		/* level of player */
     95  1.1  jtc     char	sb_type[4];		/* character type of player */
     96  1.1  jtc     char	sb_name[SZ_NAME];	/* name of player */
     97  1.1  jtc     char	sb_login[SZ_LOGIN];	/* login of player */
     98  1.1  jtc     };
     99  1.1  jtc 
    100  1.1  jtc struct	charstats			/* character type statistics */
    101  1.1  jtc     {
    102  1.1  jtc     double	c_maxbrains;		/* max brains per level */
    103  1.1  jtc     double	c_maxmana;		/* max mana per level */
    104  1.1  jtc     double	c_weakness;		/* how strongly poison affects player */
    105  1.1  jtc     double	c_goldtote;		/* how much gold char can carry */
    106  1.1  jtc     int		c_ringduration;		/* bad ring duration */
    107  1.1  jtc     struct
    108  1.1  jtc 	{
    109  1.1  jtc 	double	base;		/* base for roll */
    110  1.1  jtc 	double	interval;	/* interval for roll */
    111  1.1  jtc 	double	increase;	/* increment per level */
    112  1.1  jtc 	} c_quickness,		/* quickness */
    113  1.1  jtc 	  c_strength,		/* strength */
    114  1.1  jtc 	  c_mana,		/* mana */
    115  1.1  jtc 	  c_energy,		/* energy level */
    116  1.1  jtc 	  c_brains,		/* brains */
    117  1.1  jtc 	  c_magiclvl;		/* magic level */
    118  1.1  jtc     };
    119  1.1  jtc 
    120  1.1  jtc struct menuitem				/* menu item for purchase */
    121  1.1  jtc     {
    122  1.1  jtc     char	*item;		/* menu item name */
    123  1.1  jtc     double	cost;		/* cost of item */
    124  1.1  jtc     };
    125