519
|
1
|
|
2 typedef struct teki {
|
|
3 float x;
|
|
4 float y;
|
|
5 float sx;
|
|
6 float sy;
|
|
7 int charno;
|
|
8 char tama;
|
|
9 char f;
|
|
10 int p;
|
|
11 int move;
|
|
12 int sc;
|
|
13 int dt1;
|
|
14 int dt2;
|
|
15 } teki;
|
|
16
|
|
17
|
|
18
|
|
19 typedef struct player {
|
|
20 int x;
|
|
21 int y;
|
|
22 int ch;
|
|
23 int point;
|
|
24 char bf;
|
|
25 int muteki;
|
|
26 int zanki;
|
|
27 int ccount;
|
|
28 } player;
|
|
29
|
|
30 code
|
|
31 put_enemy_bung(
|
|
32 code(*junction)(int,teki *,player,struct move_interface),
|
|
33 int tekino,
|
|
34 teki *enemy,
|
|
35 player jiki,
|
|
36 struct move_interface interface);
|
|
37
|
|
38 code
|
|
39 move13_1(int tekino,teki *enemy,player jiki,struct move_interface interface);
|
|
40
|
|
41 code
|
|
42 move13(int tekino,teki *enemy,player jiki,struct move_interface interface)
|
|
43 {
|
|
44 if (enemy[keyenemyno].f == 0 ) {
|
|
45
|
|
46 goto put_enemy_bung(move13_1,tekino,enemy,jiki,interface);
|
|
47 }
|
|
48 goto move13_1(tekino,enemy,jiki,interface);
|
|
49 }
|
|
50
|