diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-14 15:25:01 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-14 15:25:01 +0000 |
| commit | a4e34c257a4f5966ce699f48d30b3528bdaa45e4 (patch) | |
| tree | 90835e3ad5263748ee099fc23db99b3cd12d9370 /include/proto.h | |
| parent | 1438b79069821cba744a4ea4739324560be64fb6 (diff) | |
- program bol prepisany tak, aby sa dal v buducnosti sietovy multiplayer prepisat pre protokol UDP
( BTW network.[ch] je uz zombia )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@14 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/proto.h')
| -rw-r--r-- | include/proto.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h new file mode 100644 index 0000000..5813165 --- /dev/null +++ b/include/proto.h @@ -0,0 +1,25 @@ + +#ifndef MY_PROTO + +#define MY_PROTO + +#include "tux.h" +#include "server.h" + +extern void proto_send_init_server(client_t *client); +extern void proto_recv_init_client(char *msg); +extern void proto_send_event_server(tux_t *tux, int action, client_t *client); +extern void proto_recv_event_client(char *msg); +extern void proto_send_event_client(int action); +extern void proto_recv_event_server(client_t *client, char *msg); +extern void proto_send_newtux_server(client_t *client, tux_t *tux); +extern void proto_recv_newtux_client(char *msg); +extern void proto_send_deltux_server(client_t *client); +extern void proto_recv_deltux_client(char *msg); +extern void proto_send_additem_server(item_t *p); +extern void proto_recv_additem_client(char *msg); +extern void proto_send_context_client(tux_t *tux); +extern void proto_recv_context_server(client_t *client, char *msg); + +#endif + |