annotate test/putenemy.c @ 496:5640fb7a270d

more bugs...
author kono
date Thu, 22 Dec 2005 00:20:09 +0900
parents cc1a5f764782
children ef225b589888
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
492
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
1 extern int printf(char *,...);
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
2 void
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
3 Putenemy(int charno,float x,float y,float sx,float sy,int move) {
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
4 if(x)
496
5640fb7a270d more bugs...
kono
parents: 492
diff changeset
5 printf("#0004:%d %f %f %f %f %d\n",charno,x,y,sx,sy,move);
492
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
6 else
496
5640fb7a270d more bugs...
kono
parents: 492
diff changeset
7 printf("#0006:check\n");
492
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
8 }
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
9 int
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
10 main()
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
11 {
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
12 int ix=32,iy=32; float fx=32,fy=32;
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
13 Putenemy(0,ix,iy,1,0,10);
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
14 Putenemy(1,(float)ix,(float)iy,1,0,10);
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
15 Putenemy(2,(float)ix,(float)iy,(float)ix,(float)iy,ix);
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
16 Putenemy(3,(float)ix,(float)iy,(float)ix,0,ix);
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
17 Putenemy(4,fx,fy,1,0,10);
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
18 }
cc1a5f764782 *** empty log message ***
kono
parents:
diff changeset
19