ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/player.h
(Generate patch)

Comparing deliantra/server/include/player.h (file contents):
Revision 1.103 by root, Fri Mar 26 00:59:21 2010 UTC vs.
Revision 1.108 by root, Mon May 10 13:09:30 2010 UTC

131 bool ACC (RW, dirty); // set if player is dirty (not reliable yet!) 131 bool ACC (RW, dirty); // set if player is dirty (not reliable yet!)
132 132
133 float ACC (RW, weapon_sp); /* Penalties to speed when fighting w speed >ws/10 */ 133 float ACC (RW, weapon_sp); /* Penalties to speed when fighting w speed >ws/10 */
134 float ACC (RW, weapon_sp_left); // same as speed_left, but for attacks 134 float ACC (RW, weapon_sp_left); // same as speed_left, but for attacks
135 living ACC (RO, orig_stats); /* Permanent real stats of player */ 135 living ACC (RO, orig_stats); /* Permanent real stats of player */
136 object_ptr last_skill_ob[NUM_SKILLS]; /* the exp object */ 136 object_ptr last_skill_ob[CS_NUM_SKILLS]; /* the exp object */
137 object_ptr ACC (RW, last_used); /* Pointer to object last picked or applied */ 137 object_ptr ACC (RW, last_used); /* Pointer to object last picked or applied */
138 138
139 object_ptr ACC (RW, combat_ob); // which weapon/bow/skill to use for direct attacks 139 object_ptr ACC (RW, combat_ob); // which weapon/bow/skill to use for direct attacks
140 object_ptr ACC (RW, ranged_ob); // which skill/item/spell to use for ranged attacks 140 object_ptr ACC (RW, ranged_ob); // which skill/item/spell to use for ranged attacks
141 object_ptr ACC (RW, golem); // the currently controlled golem 141 object_ptr ACC (RW, golem); // the currently controlled golem
157 157
158 object_ptr ACC (RW, killer); /* Who last tried to kill this player (this object is usually destroyed) */ 158 object_ptr ACC (RW, killer); /* Who last tried to kill this player (this object is usually destroyed) */
159 159
160 float speed_left_save; // spee doptimisation, see process_players[12] 160 float speed_left_save; // spee doptimisation, see process_players[12]
161 char write_buf[MAX_BUF]; /* Holds arbitrary input from client */ /* should go */ 161 char write_buf[MAX_BUF]; /* Holds arbitrary input from client */ /* should go */
162 char ACC (RW, password)[16]; /* 2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16 */ 162 char ACC (RW, password)[256]; /* 2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16 */
163 163
164 partylist *ACC (RW, party); /* Party this player is part of */ 164 partylist *ACC (RW, party); /* Party this player is part of */
165 partylist *ACC (RW, party_to_join); /* used when player wants to join a party */ 165 partylist *ACC (RW, party_to_join); /* used when player wants to join a party */
166 /* but we will have to get password first */ 166 /* but we will have to get password first */
167 /* so we have to remember which party to */ 167 /* so we have to remember which party to */
190 { 190 {
191 if (delayed_update) 191 if (delayed_update)
192 ob->update_stats (); 192 ob->update_stats ();
193 } 193 }
194 194
195#if 0
196 enum {
197 SA_SPELLS = 1<<0,
198 SA_EXP = 1<<1,
199 };
200
201 uint8 ACxC (RW, stat_update_flags);
202
203 void need_stat_update (int flags)
204 {
205 stat_update_flags |= flags;
206 }
207#endif
208
195 // return the los value for the given coordinate 209 // return the los value for the given coordinate
196 MTH sint8 blocked_los (int dx, int dy) const 210 MTH sint8 blocked_los (int dx, int dy) const
197 { 211 {
198 dx += LOS_X0; 212 dx += LOS_X0;
199 dy += LOS_Y0; 213 dy += LOS_Y0;
273 MTH void statusmsg (const_utf8_string msg, int color = NDI_BLACK); 287 MTH void statusmsg (const_utf8_string msg, int color = NDI_BLACK);
274 288
275 // a prominent box that signifies some error such as a failed 289 // a prominent box that signifies some error such as a failed
276 // improvement potion. should not be long. 290 // improvement potion. should not be long.
277 MTH void failmsg (const_utf8_string msg, int color = NDI_RED); 291 MTH void failmsg (const_utf8_string msg, int color = NDI_RED);
292 void failmsgf (const_utf8_string format, ...); // always NDI_RED
278 293
279 MTH void update_spells () const 294 MTH void update_spells () const
280 { 295 {
281 if (ns) 296 if (ns)
282 ns->update_spells = true; 297 ns->update_spells = true;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines