Mercurial > hg > CbC > old > device
diff test/putenemy.c @ 492:cc1a5f764782
*** empty log message ***
author | kono |
---|---|
date | Wed, 21 Dec 2005 12:10:43 +0900 |
parents | |
children | 5640fb7a270d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/putenemy.c Wed Dec 21 12:10:43 2005 +0900 @@ -0,0 +1,19 @@ +extern int printf(char *,...); +void +Putenemy(int charno,float x,float y,float sx,float sy,int move) { + if(x) + printf("%d %f %f %f %f %d\n",charno,x,y,sx,sy,move); + else + printf("check\n"); +} +int +main() +{ + int ix=32,iy=32; float fx=32,fy=32; + Putenemy(0,ix,iy,1,0,10); + Putenemy(1,(float)ix,(float)iy,1,0,10); + Putenemy(2,(float)ix,(float)iy,(float)ix,(float)iy,ix); + Putenemy(3,(float)ix,(float)iy,(float)ix,0,ix); + Putenemy(4,fx,fy,1,0,10); +} +