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

Comparing deliantra/server/include/client.h (file contents):
Revision 1.38 by root, Wed Mar 14 15:44:47 2007 UTC vs.
Revision 1.39 by root, Thu Mar 15 03:30:37 2007 UTC

224 player_ptr ACC (RO, pl); 224 player_ptr ACC (RO, pl);
225 225
226 int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ 226 int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */
227 227
228 int ACC (RW, max_rate); // max. # of bytes to send per tick 228 int ACC (RW, max_rate); // max. # of bytes to send per tick
229 faceidx ACC (RW, scrub_idx); // which face to send next
230 int ACC (RW, bg_scrub); // how many ticks till the next background face send
229 std::vector<faceidx> askface; // which faces have been requested by the client 231 std::vector<faceidx> askface; // which faces have been requested by the client
230 232
231 void do_destroy (); 233 void do_destroy ();
232 void gather_callbacks (AV *&callbacks, event_type event) const; 234 void gather_callbacks (AV *&callbacks, event_type event) const;
233 235
278 280
279 // called when something under the player changes 281 // called when something under the player changes
280 MTH void floorbox_update () { update_look = 1; } 282 MTH void floorbox_update () { update_look = 1; }
281 // called when the player has been moved 283 // called when the player has been moved
282 MTH void floorbox_reset () { look_position = 0; floorbox_update (); } 284 MTH void floorbox_reset () { look_position = 0; floorbox_update (); }
285
286 MTH void tick (); // called every server tick to do housekeeping etc.
283 287
284 MTH static client *create (int fd, const char *peername); 288 MTH static client *create (int fd, const char *peername);
285 289
286protected: 290protected:
287 client (int fd, const char *from_ip); 291 client (int fd, const char *from_ip);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines