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