Mercurial > hg > Members > tkaito > task_dandy
view dandy.h @ 26:6bea374ee604
global alloc test.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 10 Dec 2010 02:20:37 +0900 |
parents | 3fb8a6a34e24 |
children | 34fde39c0a31 |
line wrap: on
line source
#ifndef INCLUDE_DANDY_H #define INCLUDE_DANDY_H #include <math.h> #include <stdlib.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "TaskManager.h" #include "SceneGraph.h" #include "Application.h" #include "MainLoop.h" #include "Func.h" class Dandy : public Application { MainLoopPtr init(Viewer *viewer, int w, int h); }; typedef struct { double x, y; //16 double vx, vy; //16 int frame; //4 const char *chara; //1 int vital; //4 int score; //4 void *parent; //4 void *root; //4 int flag; //4 char a, i, u; //3 } *ObjPropertyPtr, ObjProperty; extern ObjProperty back_property; extern ObjPropertyPtr charactor; //キャラクターの総数 static const int ENEMY_NUM = 1; //TaskArray 生成に必要な各値 static const int TASK_NUM = 2; static const int PARAMETER = 0; static const int INDATA_NUM = 2; static const int OUTDATA_NUM = 1; extern void create_title_back(Viewer *sgroot, int w, int h); //extern create_enemy(SchedTask *s, void *enemy_, void *b); typedef struct enemy_state { const char *charano; int score; int vital; } state; //const state enemystate[50]; #define ENEMY_STATUS_TABLE {\ ENEMY_STATUS("title001", 0, 0),\ ENEMY_STATUS("greencrab", 330, 98),\ ENEMY_STATUS("plane", 470, 37),\ ENEMY_STATUS("e_redbullet", 30, 16),\ ENEMY_STATUS("bass1_organ", 25000, 10000),\ ENEMY_STATUS("boss1_parts1", 10000, 10000),\ ENEMY_STATUS("bluebullet", 40, 39),\ ENEMY_STATUS("e_laser", 100, 100000),\ ENEMY_STATUS("lightning", 100, 100000),\ ENEMY_STATUS("asteroid", 170, 500),\ ENEMY_STATUS("asteroid_boss2body", 100, 500),\ ENEMY_STATUS("boss2_leftshoulder", 10000, 12000),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ ENEMY_STATUS("t", 0, 0),\ } #endif