… | |
… | |
120 | float ACC (RW, weapon_sp); /* Penalties to speed when fighting w speed >ws/10 */ |
120 | float ACC (RW, weapon_sp); /* Penalties to speed when fighting w speed >ws/10 */ |
121 | living ACC (RO, orig_stats); /* Permanent real stats of player */ |
121 | living ACC (RO, orig_stats); /* Permanent real stats of player */ |
122 | object_ptr last_skill_ob[NUM_SKILLS]; /* the exp object */ |
122 | object_ptr last_skill_ob[NUM_SKILLS]; /* the exp object */ |
123 | object_ptr ACC (RW, last_used); /* Pointer to object last picked or applied */ |
123 | object_ptr ACC (RW, last_used); /* Pointer to object last picked or applied */ |
124 | |
124 | |
125 | object_ptr ACC (RW, combat_skill); // which skill to use for direct attacks |
|
|
126 | object_ptr ACC (RW, combat_ob); // which weapon to use |
125 | object_ptr ACC (RW, combat_ob); // which weapon/bow/skill to use for direct attacks |
127 | object_ptr ACC (RW, ranged_skill); // which skill to use for ranged attacks |
126 | object_ptr ACC (RW, ranged_ob); // which skill/item/spell to use for ranged attacks |
128 | object_ptr ACC (RW, ranged_ob); // bow/spell |
|
|
129 | object_ptr ACC (RW, golem); // the currently controlled golem |
127 | object_ptr ACC (RW, golem); // the currently controlled golem |
130 | |
128 | |
131 | sint16 ACC (RW, bed_x), ACC (RW, bed_y); /* x,y - coordinates of respawn (savebed) */ |
129 | sint16 ACC (RW, bed_x), ACC (RW, bed_y); /* x,y - coordinates of respawn (savebed) */ |
132 | shstr ACC (RW, savebed_map); /* map where player will respawn after death */ |
130 | shstr ACC (RW, savebed_map); /* map where player will respawn after death */ |
133 | shstr ACC (RW, maplevel); /* On which level is the player? */ |
131 | shstr ACC (RW, maplevel); /* On which level is the player? */ |
… | |
… | |
163 | /* the player can see. For maps smaller than */ |
161 | /* the player can see. For maps smaller than */ |
164 | /* MAP_CLIENT_.., the upper left is used */ |
162 | /* MAP_CLIENT_.., the upper left is used */ |
165 | |
163 | |
166 | shstr ACC (RW, invis_race); /* What race invisible to? */ |
164 | shstr ACC (RW, invis_race); /* What race invisible to? */ |
167 | |
165 | |
|
|
166 | MTH float weapon_speed () const; |
|
|
167 | |
168 | MTH static player *create (); |
168 | MTH static player *create (); |
169 | |
169 | |
170 | static player *load_pl (object_thawer &thawer); |
170 | static player *load_pl (object_thawer &thawer); |
171 | MTH static player *load_pl (const char *path); |
171 | MTH static player *load_pl (const char *path); |
172 | |
172 | |
… | |
… | |
178 | |
178 | |
179 | // wether the player can "see" this mapspace or not, decided by los |
179 | // wether the player can "see" this mapspace or not, decided by los |
180 | // 0 - nothing see, 100 - fully visible |
180 | // 0 - nothing see, 100 - fully visible |
181 | MTH sint8 visibility_at (maptile *map, int x, int y) const; |
181 | MTH sint8 visibility_at (maptile *map, int x, int y) const; |
182 | |
182 | |
183 | MTH void set_skill (object *skill, object *ob = 0); |
|
|
184 | |
|
|
185 | MTH void connect (client *ns); |
183 | MTH void connect (client *ns); |
186 | MTH void disconnect (); |
184 | MTH void disconnect (); |
187 | |
185 | |
188 | MTH void activate (); |
186 | MTH void activate (); |
189 | MTH void deactivate (); |
187 | MTH void deactivate (); |