diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-06-27 16:46:09 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-06-27 16:46:09 +0000 |
| commit | a0f73cf7421e55e84b61065b4eb7ed13b05ce055 (patch) | |
| tree | dbbc9e1d9250d85ce2e596841b0aea9cd477c016 /include/server.h | |
| parent | e528950ac7a2d23512be2a06378525b00be74185 (diff) | |
- šetřit možnosti podvádění – rychlost pohybu
- delObjectFromSpace ma casovu narocnost log(2,n) pri odstraneni objetu zo zonamu objektov
( btw. z hladiska programovania su veci pre 0.20 hotove )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@75 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/server.h')
| -rw-r--r-- | include/server.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/server.h b/include/server.h index f1abc8f..24c6e0a 100644 --- a/include/server.h +++ b/include/server.h @@ -9,6 +9,7 @@ #include "tux.h" #include "buffer.h" #include "myTimer.h" +#include "protect.h" #ifndef PUBLIC_SERVER #include "interface.h" @@ -27,7 +28,7 @@ #endif -#define SERVER_TIMEOUT 5000 +#define SERVER_TIMEOUT 1000 #define SERVER_TIME_SYNC 1000 #define SERVER_TIME_PING 1000 #define SERVER_MAX_CLIENTS 100 @@ -45,10 +46,13 @@ typedef struct client_struct sock_sdl_udp_t *socket_sdl_udp; #endif int status; + tux_t *tux; - my_time_t lastPing; - list_t *listCheck; - list_t *buffer; + + protect_t *protect; + + list_t *listSendMsg; + list_t *listRecvMsg; } client_t; #ifdef PUBLIC_SERVER |