Mercurial > hg > old > magoroku_racing
view linda.h @ 46:abadcc080667
*** empty log message ***
author | gongo |
---|---|
date | Wed, 08 Nov 2006 06:10:44 +0000 |
parents | 3b71b39411b1 |
children | c875add6256e |
line wrap: on
line source
/* +-------+-------+-------+-----------+ | game | car | course| data | | mode | id | id | (fmatrix) | +-------+-------+-------+-----------+ mode : ゲームの状態(オープニング、車選択等) car id : ユーザの選んだ車 course id : 走るコース(1Pのみ選択可能) data : ユーザの車の状態(location、angle等) ユーザのIDはLinda_IDで判断する linda_seq[i]: ユーザID=i */ #define PKT_MODE_OFFSET 0 #define PKT_CARID_OFFSET 4 #define PKT_COURSEID_OFFSET 8 #define PKT_DATA_OFFSET 12 #define PKT_HEADER_SIZE 12 #define CLIENT_MAX 2 #define LINDA_ASK_ID 65535 #define LINDA_HOST "firefly.cr.ie.u-ryukyu.ac.jp" #define MODE_INIT 0 #define MODE_WAIT 1 #define MODE_WAIT_READY 2 #define MODE_OPENING 3 #define MODE_SELECT_CAR 4 #define MODE_SELECT_COURSE 5 #define MODE_READY 6 #define MODE_MAIN_INIT 7 #define MODE_MAIN 8 #define MODE_MAIN_PAUSE 9 #define MODE_MAIN_GOAL 10 #define MODE_MAIN_FINISH 11 #define MODE_FINISH 12 #define PLAYER_1P 1 static Bool linda_sche_wait0(); static Bool linda_sche_wait1(); static Bool linda_sche_wait_ready0(); static Bool linda_sche_wait_ready1(); static Bool linda_sche_opening0(); static Bool linda_sche_opening1(); static Bool linda_sche_select_car0(); static Bool linda_sche_select_car1(); static Bool linda_sche_select_course0(); static Bool linda_sche_select_course1(); static Bool linda_sche_ready0(); static Bool linda_sche_ready1();