492
|
1 extern int printf(char *,...);
|
|
2 void
|
|
3 Putenemy(int charno,float x,float y,float sx,float sy,int move) {
|
|
4 if(x)
|
496
|
5 printf("#0004:%d %f %f %f %f %d\n",charno,x,y,sx,sy,move);
|
492
|
6 else
|
496
|
7 printf("#0006:check\n");
|
492
|
8 }
|
|
9 int
|
|
10 main()
|
|
11 {
|
|
12 int ix=32,iy=32; float fx=32,fy=32;
|
|
13 Putenemy(0,ix,iy,1,0,10);
|
|
14 Putenemy(1,(float)ix,(float)iy,1,0,10);
|
|
15 Putenemy(2,(float)ix,(float)iy,(float)ix,(float)iy,ix);
|
|
16 Putenemy(3,(float)ix,(float)iy,(float)ix,0,ix);
|
|
17 Putenemy(4,fx,fy,1,0,10);
|
|
18 }
|
|
19
|