Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 53 lines (37 sloc) 1.592 kB
32503d5 @dividuum Kompletttrennung Server/Anzeige angefangen
authored
1 /*
2
3 Copyright (c) 2006 Florian Wesch <fw@dividuum.de>. All Rights Reserved.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18
19 */
20
21 #ifndef GUI_PLAYER_H
22 #define GUI_PLAYER_H
23
24 #include <string.h>
25
26 #include "packet.h"
27
5fd09d4 @dividuum renderer branch merged
authored
28 typedef struct client_player_s {
29 int num;
8fbd362 @dividuum Neue Pfadlogik auf dem Client. Dadurch laufen Kreaturen nicht mehr (s…
authored
30 int used;
5fd09d4 @dividuum renderer branch merged
authored
31 void *userdata;
32
32503d5 @dividuum Kompletttrennung Server/Anzeige angefangen
authored
33 char name[16];
34 int color;
35
36 int score;
37 int cpu_usage;
5fd09d4 @dividuum renderer branch merged
authored
38 } client_player_t;
32503d5 @dividuum Kompletttrennung Server/Anzeige angefangen
authored
39
5fd09d4 @dividuum renderer branch merged
authored
40 /* Renderer */
41 const client_player_t *client_player_get(int num);
42 const client_player_t *client_player_get_king();
43 void client_player_each(void (*callback)(const client_player_t *player, void *opaque), void *opaque);
32503d5 @dividuum Kompletttrennung Server/Anzeige angefangen
authored
44
45 /* Network */
5fd09d4 @dividuum renderer branch merged
authored
46 void client_player_from_network(packet_t *packet);
47 void client_player_king_from_network(packet_t *packet);
32503d5 @dividuum Kompletttrennung Server/Anzeige angefangen
authored
48
5fd09d4 @dividuum renderer branch merged
authored
49 void client_player_init();
50 void client_player_shutdown();
32503d5 @dividuum Kompletttrennung Server/Anzeige angefangen
authored
51
52 #endif
Something went wrong with that request. Please try again.