Mercurial > hg > Members > koba > t_dandy
diff ppe/tobject.h @ 1:b4c797eee72a
task dandy base
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 13 Dec 2010 04:56:23 +0900 |
parents | |
children | 6382d8f6a973 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ppe/tobject.h Mon Dec 13 04:56:23 2010 +0900 @@ -0,0 +1,96 @@ +#ifndef INCLUDE_OBJECT +#define INCLUDE_OBJECT + +#define TAMALV1P 14 +#define TAMALV2P 50 +#define TAMALV3P 24 + +#define LASERLV1P 17 +#define LASERLV2P 154 +#define LASERLV3P 51 + +#define TRUE 1 +#define FALSE 0 +#define BOOL char + +typedef struct player { + int x; + int y; + int ch; + int point; + BOOL bf; + int muteki; + int zanki; + int ccount; +} player; + +typedef struct tama { + int x; + int y; +} tama; + +typedef struct tama1 { + int x; + int y; + int r; + int l; +} tama1; + +typedef struct tama2 { + int x; + int y; + int rr; + int sr; + int sl; + int ll; +} tama2; + +typedef struct stge { + int stg; +} stge; + +typedef struct laser { + float x; + float y; + float sx; + float sy; + int r; + int enemyno; + float s; +} laser; + +typedef struct bomchar { + int x; + int y; + int f; + int no; +} bomchar; + +typedef struct CHARACTER{ + float x; //position + float y; + + float vx; //velocity + float vy; + + float vit; //vitality + int score; + int dt1; + int dt2; + int charano; //sprite_number + BOOL tama; //bullet identifier + BOOL f; //apiarance idenfifier + float s; + + struct CHARACTER * (*state)(struct CHARACTER *p); + struct CHARACTER * (*collision)(struct CHARACTER *p); + struct CHARACTER *next; + struct CHARACTER *prev; + +} CHARACTER; + +CHARACTER * noaction(CHARACTER *p); +CHARACTER * delete_chara(CHARACTER *p); +extern void Bom(int x, int y, int bchar, bomchar bchar); + +#endif