comparison linda.h @ 44:3b71b39411b1

*** empty log message ***
author gongo
date Wed, 08 Nov 2006 05:21:58 +0000
parents
children abadcc080667
comparison
equal deleted inserted replaced
43:a1908b83f8fa 44:3b71b39411b1
1 /*
2 +-------+-------+-------+-----------+
3 | game | car | course| data |
4 | mode | id | id | (fmatrix) |
5 +-------+-------+-------+-----------+
6
7 mode : ゲームの状態(オープニング、車選択等)
8 car id : ユーザの選んだ車
9 course id : 走るコース(1Pのみ選択可能)
10 data : ユーザの車の状態(location、angle等)
11
12 ユーザのIDはLinda_IDで判断する
13 linda_seq[i]: ユーザID=i
14 */
15 #define PKT_MODE_OFFSET 0
16 #define PKT_CARID_OFFSET 4
17 #define PKT_COURSEID_OFFSET 8
18 #define PKT_DATA_OFFSET 12
19
20 #define PKT_HEADER_SIZE 12
21
22
23 #define CLIENT_MAX 2
24 #define LINDA_ASK_ID 65535
25 #define LINDA_HOST "firefly.cr.ie.u-ryukyu.ac.jp"
26
27 #define MODE_INIT 0
28 #define MODE_WAIT 1
29 #define MODE_WAIT_READY 2
30 #define MODE_OPENING 3
31 #define MODE_SELECT_CAR 4
32 #degine MODE_SELECT_COURSE 5
33 #degine MODE_READY 6
34 #degine MODE_MAIN_INIT 7
35 #degine MODE_MAIN 8
36 #degine MODE_MAIN_PAUSE 9
37 #degine MODE_MAIN_GOAL 10
38 #degine MODE_MAIN_FINISH 11
39 #degine MODE_FINISH 12