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.16 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.17 by root, Tue Sep 19 22:05:55 2006 UTC

110}; 110};
111 111
112// memsettable part of player 112// memsettable part of player
113struct player_pod 113struct player_pod
114{ 114{
115 object *ob; /* The object representing the player */ 115 object_ptr ob; /* The object representing the player */
116 maptile *loading; /* When entering a map in progress of loading, not really used */ 116 maptile *loading; /* When entering a map in progress of loading, not really used */
117 rangetype shoottype; /* Which range-attack is being used by player */ 117 rangetype shoottype; /* Which range-attack is being used by player */
118 bowtype_t bowtype; /* which firemode? */ 118 bowtype_t bowtype; /* which firemode? */
119 petmode_t petmode; /* which petmode? */ 119 petmode_t petmode; /* which petmode? */
120 object *ranges[range_size]; /* object for each range. Set up in fix player. Note */ 120 object_ptr ranges[range_size]; /* object for each range. Set up in fix player. Note */
121 /* That not all are used, it is just nice to map this 1:1 */ 121 /* That not all are used, it is just nice to map this 1:1 */
122 /* With the range names */ 122 /* With the range names */
123 uint32 golem_count; /* To track the golem */ 123 uint32 golem_count; /* To track the golem */
124 usekeytype usekeys; /* Method for finding keys for doors */ 124 usekeytype usekeys; /* Method for finding keys for doors */
125 unapplymode unapply; /* Method for auto unapply */ 125 unapplymode unapply; /* Method for auto unapply */
147 uint32 peaceful:1; /* If set, won't attack friendly creatures */ 147 uint32 peaceful:1; /* If set, won't attack friendly creatures */
148 uint32 hidden:1; /* If True, player (DM) is hidden from view */ 148 uint32 hidden:1; /* If True, player (DM) is hidden from view */
149 uint32 explore:1; /* if True, player is in explore mode */ 149 uint32 explore:1; /* if True, player is in explore mode */
150 uint32 no_shout:1; /* if True, player is *not* able to use shout command */ 150 uint32 no_shout:1; /* if True, player is *not* able to use shout command */
151 151
152 object *last_skill_ob[NUM_SKILLS]; /* the exp object */ 152 object_ptr last_skill_ob[NUM_SKILLS]; /* the exp object */
153 sint64 last_skill_exp[NUM_SKILLS]; /* shadow register. if != exp. obj update client */ 153 sint64 last_skill_exp[NUM_SKILLS]; /* shadow register. if != exp. obj update client */
154 154
155 float weapon_sp; /* Penalties to speed when fighting w speed >ws/10 */ 155 float weapon_sp; /* Penalties to speed when fighting w speed >ws/10 */
156 float last_weapon_sp; /* if diff than weapon_sp, update client */ 156 float last_weapon_sp; /* if diff than weapon_sp, update client */
157 uint16 last_flags; /* fire/run on flags for last tick */ 157 uint16 last_flags; /* fire/run on flags for last tick */
163 living orig_stats; /* Permanent real stats of player */ 163 living orig_stats; /* Permanent real stats of player */
164 living last_stats; /* Last stats as sent to client */ 164 living last_stats; /* Last stats as sent to client */
165 float last_speed; /* Last speed as sent to client */ 165 float last_speed; /* Last speed as sent to client */
166 sint16 last_resist[NROFATTACKS]; /* last resist values sent to client */ 166 sint16 last_resist[NROFATTACKS]; /* last resist values sent to client */
167 int Swap_First; /* First stat player has selected to swap */ 167 int Swap_First; /* First stat player has selected to swap */
168 object *last_used; /* Pointer to object last picked or applied */ 168 object_ptr last_used; /* Pointer to object last picked or applied */
169 uint32 last_used_id; /* Safety measures to be sure it's the same */ 169 uint32 last_used_id; /* Safety measures to be sure it's the same */
170 sint8 blocked_los[MAP_CLIENT_X][MAP_CLIENT_Y]; /* array showing what spaces */ 170 sint8 blocked_los[MAP_CLIENT_X][MAP_CLIENT_Y]; /* array showing what spaces */
171 /* the player can see. For maps smaller than */ 171 /* the player can see. For maps smaller than */
172 /* MAP_CLIENT_.., the upper left is used */ 172 /* MAP_CLIENT_.., the upper left is used */
173 173
203 /* join */ 203 /* join */
204 char search_str[MAX_BUF]; /* Item we are looking for */ 204 char search_str[MAX_BUF]; /* Item we are looking for */
205 sint16 encumbrance; /* How much our player is encumbered */ 205 sint16 encumbrance; /* How much our player is encumbered */
206 uint16 outputs_sync; /* How often to print, no matter what */ 206 uint16 outputs_sync; /* How often to print, no matter what */
207 uint16 outputs_count; /* Print if this count is exceeded */ 207 uint16 outputs_count; /* Print if this count is exceeded */
208 object *mark; /* marked object */ 208 object_ptr mark; /* marked object */
209 uint32 mark_count; /* count of mark object */ 209 uint32 mark_count; /* count of mark object */
210 /* Special DM fields */ 210 /* Special DM fields */
211 tag_t *stack_items; /* Item stack for patch/dump/... commands */ 211 tag_t *stack_items; /* Item stack for patch/dump/... commands */
212 int stack_position; /* Current stack position, 0 for no item */ 212 int stack_position; /* Current stack position, 0 for no item */
213}; 213};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines