… | |
… | |
92 | } |
92 | } |
93 | |
93 | |
94 | INTERFACE_CLASS (player) |
94 | INTERFACE_CLASS (player) |
95 | struct player : zero_initialised, attachable |
95 | struct player : zero_initialised, attachable |
96 | { |
96 | { |
97 | client *ACC (RO, ns); /* Socket information for this player */ |
97 | client *ACC (RO, ns); /* Socket information for this player, ALWAYS valid when a player is on a map */ |
98 | object *ACC (RW, ob); /* The object representing the player */ |
98 | object *ACC (RW, ob); /* The object representing the player, ALWAYS valid */ |
99 | object_vector_index ACC (RO, active); |
99 | object_vector_index ACC (RO, active); |
100 | |
100 | |
101 | bowtype_t ACC (RW, bowtype); /* which firemode? */ |
101 | bowtype_t ACC (RW, bowtype); /* which firemode? */ |
102 | petmode_t ACC (RW, petmode); /* which petmode? */ |
102 | petmode_t ACC (RW, petmode); /* which petmode? */ |
103 | usekeytype ACC (RW, usekeys); /* Method for finding keys for doors */ |
103 | usekeytype ACC (RW, usekeys); /* Method for finding keys for doors */ |
104 | unapplymode ACC (RW, unapply); /* Method for auto unapply */ |
104 | unapplymode ACC (RW, unapply); /* Method for auto unapply */ |
105 | uint32 ACC (RW, count); /* Any numbers typed before a command */ |
105 | uint32 ACC (RW, count); /* Any numbers typed before a command */ |
106 | uint32 ACC (RW, mode); /* Mode of player for pickup. */ |
106 | uint32 ACC (RW, mode); /* Mode of player for pickup. */ |
107 | |
107 | |
108 | sint8 ACC (RW, digestion); /* Any bonuses/penalties to digestion */ |
108 | int ACC (RW, digestion); /* Any bonuses/penalties to digestion */ |
109 | sint8 ACC (RW, gen_hp); /* Bonuses to regeneration speed of hp */ |
109 | int ACC (RW, gen_hp); /* Bonuses to regeneration speed of hp */ |
110 | sint8 ACC (RW, gen_sp); /* Bonuses to regeneration speed of sp */ |
110 | int ACC (RW, gen_sp); /* Bonuses to regeneration speed of sp */ |
111 | sint8 ACC (RW, gen_sp_armour); /* Penalty to sp regen from armour */ |
111 | int ACC (RW, gen_sp_armour); /* Penalty to sp regen from armour */ |
112 | sint8 ACC (RW, gen_grace); /* Bonuses to regeneration speed of grace */ |
112 | int ACC (RW, gen_grace); /* Bonuses to regeneration speed of grace */ |
113 | sint16 ACC (RW, item_power); /* Total item power of objects equipped */ |
113 | int ACC (RW, item_power); /* Total item power of objects equipped */ |
114 | uint8 ACC (RW, listening); /* Which priority will be used in info_all */ |
114 | uint8 ACC (RW, listening); /* Which priority will be used in info_all */ |
115 | uint8 ACC (RW, gender); /* 0 male, 1 female, others not yte defined */ |
115 | uint8 ACC (RW, gender); /* 0 male, 1 female, others not yte defined */ |
116 | |
116 | |
117 | /* Try to put all the bitfields together - saves some small amount of memory */ |
117 | /* Try to put all the bitfields together - saves some small amount of memory */ |
118 | bool ACC (RW, braced); /* Will not move if braced, only attack */ |
118 | bool ACC (RW, braced); /* Will not move if braced, only attack */ |