changeset 3:3415feffc433

remove garbage.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Tue, 14 Dec 2010 01:00:10 +0900
parents 6382d8f6a973
children a87dd72ce1b3
files extern.txt ppe/collision.cc ppe/collision.h task_dandy.h
diffstat 4 files changed, 0 insertions(+), 441 deletions(-) [+]
line wrap: on
line diff
--- a/extern.txt	Tue Dec 14 00:54:07 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,121 +0,0 @@
-Character.h:extern CHARACTER *active_chara_list;
-Character.h:extern CHARACTER *free_chara_list;
-Character.h:extern CHARACTER *kyeenemyno;
-Character.h:extern CHARACTER *tekino0;
-Character.h:extern CHARACTER *enemy_part1;
-Character.h:extern CHARACTER *enemy_part2;
-Character.h:extern CHARACTER *enemy_part3;
-Character.h:extern CHARACTER *enemy_part4;
-Character.h:extern CHARACTER *enemy_part5;
-Character.h:extern int filpcount;
-Character.h:extern int stage;
-Character.h://extern teki enemy[300];
-Character.h:extern const table enemystate[50];
-Character_state.h:extern int enemyfaste;
-Character_state.h:extern int fastebos;
-Character_state.h:extern int asteroidi;
-Enemy.h:extern void Puttama(int type, float x, float y);
-Enemy.h:extern void Defenemy(int no, int charno, int sc, int p);
-Enemy.h:extern void TFon();
-Enemy.h:extern void TFoff();
-Enemy.h:extern void Putenemy(int charno, float x, float y, float sx, float sy,
-Enemy.h:extern void Putenemyb(int b, int charno, float x, float y, float sx,
-Enemy.h:extern void En0();
-Enemy.h:extern int filpcount;
-Enemy.h:extern int stage;
-Enemy.h:extern teki enemy[300];
-Enemy.h:extern const state enemystate[50];
-LoadSprite.h:extern SDL_Surface *LoadSprite(SURFACE *surfaces);
-LoadSprite.h:extern SDL_Surface *sprite;
-Ss.h:extern int SsUtKeyOn(int vabId, int prog, int tone, int note, int fine, int voll, int vlor);
-Ss.h:extern int SsUtKeyOff(int voice, int vabId, int prog, int tone, int note);
-Ss.h:extern void SsSetSerialAttr(char s_num, char attr, char mode);
-Ss.h:extern void SsSetSerialVol(char a, int b, int c);
-Ss.h:extern int SsUtSetReverbType(int type);
-Ss.h:extern void SsSetMVol(int voll, int volr);
-Ss.h:extern void SsUtReverbOn(void);
-Ss.h:extern int SsVabTransfer(unsigned char *vh_addr, unsigned char *vd_addr, int vabid, int i_flag);
-Ss.h:extern int SsSeqOpen(unsigned int *addr, int vad_id);
-Ss.h:extern void SsSeqPlay(int seq_access_num, char play_mode, int count);
-Ss.h:extern void SsSeqStop(int seq_access_num);
-Ss.h:extern void SsSeqClose(int seq_access_num);
-Ss.h:extern void SsSetTempo(int a, int b, int c);
-Ss.h:extern void GetPadBuf(volatile unsigned char **a, volatile unsigned char **b);
-Ss.h:extern void SsUtSetReverbDepth(int a, int b);
-bom.h:extern void Bom(int x, int y);
-bom.h:extern void Putbom();
-bom.h:extern int count;
-bom.h:extern int sb_size;
-bom.h:extern int se_voice[9];
-bom.h:extern int vab[10];
-bom.h:extern bomchar bchar[100];
-count2.h:extern int pointkakudo(int playerno);
-count2.h:extern void Player(int playerno);
-count2.h:extern laser laser_lv3[64];
-count2.h:extern tama1 tlv3[3];
-count2.h:extern player jiki;
-count2.h:extern stge lg;
-count2.h:extern stge pg;
-count2.h:extern stge infg;
-count2.h:extern int infg_level;
-count2.h:extern tama1 tama_lv1[20];
-count2.h:extern tama2 tama_lv2[20];
-count2.h:extern laser laser_lv1[20];
-count2.h:extern laser laser_lv2[20];
-count2.h:extern int laser_lv1_end;
-count2.h:extern int tama_lv1_end;
-count2.h:extern int tama_lv2_end;
-debug.h:extern code(*abort_ptr) ();
-debug.h:extern code dbg_abort(int errcode);
-debug.h:extern void print_profile();
-debug.h:extern Stack current_sp;
-debug.h:extern Stack stack_peak;
-debug.h:extern void dbg_init(const char *);
-debug.h:extern int dbg_printf(const char *, ...);
-debug.h:extern int myrand(void);
-debug.h:extern int myrand_open_file(char *);
-object.h:extern    OBJECT *font;
-object.h:extern    OBJECT *chara;
-object.h:extern    OBJECT *effect;
-object.h:extern    OBJECT *boss;
-profile.h:extern Timeprof timeprof_new();
-profile.h:// extern unsigned long timeprof_get(Timeprof t);
-profile.h:extern void timeprof_sprint(char *s, const char *profname, Timeprof t);
-profile.h:extern void timeprof_begin(Timeprof t);
-profile.h:extern int timeprof_end(Timeprof t);
-schedule.h://extern int kyeenemyno;
-schedule.h:extern void schedule();
-sgoex.h://extern GsSPRITE sprite[MAXOBJ];
-sgoex.h:extern SpriteTable sptable[DEFOBJ];
-sgoex.h:extern SGO_PAD pad[2];
-sound.h:extern void Soundss();
-sound.h:extern void SoundPlay(int no);
-sound.h:extern void SoundStop();
-sound.h:extern int done ;
-sound.h:extern void poked( int sig) ;
-sound.h:extern void InitSdlMixer(void);
-sound.h:extern void LoadSdlMixer(void);
-sound.h:extern void FreeSdlMixer(void);
-sound.h:extern void PlaySdlMixer(int freq, int ch );
-sound.h:extern void PauseSdlMixer(int ch);
-sound.h:extern void ResumeSdlMixer(int ch);
-sound.h:extern void InitVolume(void);
-sound.h:extern void TimeSdlMixer(int fleq, int ch, int time);
-sound.h:extern int se_voice[9];
-sound.h:extern int vab[10];
-sound.h:extern int seq[4];
-sound.h:extern int vb_addr[10];
-sound.h:extern unsigned char *buf;
-sound.h:extern int vh_addr[10];
-syokika.h:extern struct SDL_Surface *screen;
-syokika.h:extern void syokika(int argc, char *argv[]);
-syokika.h:extern void init_sprite(OBJECT *font, OBJECT *boss, OBJECT *chara, OBJECT *effect);
-tama.h:extern void Puttama(int type, float x, float y);
-tokuten.h:extern int enemycount;
-tokuten.h:extern void tokuten();
-tokuten.h:extern void Endingscore(int fc);
-tokuten.h:extern int p_extend;
-tokuten.h:extern int clear_result[4];
-trace.h:extern void pad_trace(int);
-trace.h:extern void pad_file_open(char *f);
-trace.h:extern int pad_file_read();
--- a/ppe/collision.cc	Tue Dec 14 00:54:07 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,308 +0,0 @@
-#include "collision.h"
-#include "tobject.h"
-
-SchedDefineTask(Atari);
-
-/*
-CHARACTER *
-noaction(CHARACTER *p)
-{
-    p->state = noaction;
-    return p;
-}
-
-CHARACTER *
-delete_chara(CHARACTER *p)
-{
-  CHARACTER *parent = p;
-  p->f = FALSE;
-  p->state = noaction;
-  p->collision = noaction;
-  return parent;
-}
-*/
-
-void
-Bom(int x, int y, int bomend, bomchar *bchar)
-{
-    int i;
-    bomend++;
-    if (bomend > 49) {
-	bomend = 49;
-	return;
-    }
-
-    i = bomend;
-    bchar[i].x = x;
-    bchar[i].y = y;
-    bchar[i].no = 0;
-    bchar[i].f = 0;
-    return;
-}
-
-static int
-run(SchedTask *smanager, void *rbuf, void *wbuf)
-{
-    int w = (int)smanager->get_param(0);
-    int h = (int)smanager->get_param(1);
-    int enemycount = (int)smanager->get_param(2);
-    int bomend = (int)smanager->get_param(3);
-    int tama_lv1_end = (int)smanager->get_param(4);
-    int tama_lv2_end = (int)smanager->get_param(5);
-    int laser_lv1_end = (int)smanager->get_param(6);
-    int infg_level = (int)smanager->get_param(7);
-
-    player *jiki = (player *)smanager->get_input(rbuf, 0);
-    tama1 *tama_lv1 = (tama1 *)smanager->get_input(rbuf, 1);
-    tama2 *tama_lv2 = (tama2 *)smanager->get_input(rbuf, 2);
-    tama1 *tlv3 = (tama1 *)smanager->get_input(rbuf, 3);
-    laser *laser_lv1 = (laser *)smanager->get_input(rbuf, 4);
-    laser *laser_lv2 = (laser *)smanager->get_input(rbuf, 5);
-    laser *laser_lv3 = (laser *)smanager->get_input(rbuf, 6);
-    bomchar *bchar = (bomchar *)smanager->get_input(rbuf, 7);
-    CHARACTER *p = (CHARACTER *)smanager->get_input(rbuf, 8);
-    stge lg = *(stge *)smanager->get_input(rbuf, 9);
-    stge infg = *(stge *)smanager->get_input(rbuf, 10);
-
-    int i1, ex, ey;
-    int n;
-    ex = p->x;
-    ey = p->y;
-
-
-
-//自機やられ
-#ifndef INVISIBLE_MODE
-    if ((ex < jiki->x + 128 / 2) && (ex + w > jiki->x + 128 / 2)
-	&& (ey < jiki->y + 128 / 2) && (ey + h > jiki->y + 128 / 2)
-	&& jiki->muteki == 0) {
-	Bom(jiki->x + 16, jiki->y + 16, bomend, bchar);
-	jiki->bf = FALSE;
-	jiki->zanki--;
-	jiki->muteki = 120;
-
-	infg.stg = 0;
-	infg_level--;
-	if (infg_level < 0)
-	    infg_level = 0;
-
-	return 0;
-    }
-#endif
-
-    if (p->tama == TRUE)
-	goto jumping;
-    for (i1 = 0; i1 < tama_lv1_end + 1; i1++) {
-
-	if ((tama_lv1[i1].x + 64 + 64 > ex)
-	    && (ex + w > tama_lv1[i1].x + 16)
-	    && (tama_lv1[i1].y + 128 > ey) && (tama_lv1[i1].y < ey + h)
-	    && (tama_lv1[i1].r != -1)) {
-	    tama_lv1[i1].r = -1;
-	    p->vit -= TAMALV1P;
-	    infg.stg++;
-	    if (p->vit <= 0) {
-		infg.stg += 4;
-		Bom(p->x, p->y, bomend, bchar);
-		enemycount += (p->score *
-			       ((infg.stg / 128) + infg_level + 1));
-		p->state = delete_chara;
-		p->collision = noaction;
-		p->f = FALSE;
-		return 0;
-	    }
-	}
-	if ((tama_lv1[i1].x + 64 > ex) && (ex + w > tama_lv1[i1].x)
-	    && (tama_lv1[i1].y + 128 > ey) && (tama_lv1[i1].y < ey + h)
-	    && (tama_lv1[i1].l != -1)) {
-	    tama_lv1[i1].l = -1;
-	    p->vit -= TAMALV1P;
-	    infg.stg++;
-	    if (p->vit <= 0) {
-		infg.stg += 4;
-		Bom(p->x, p->y, bomend, bchar);
-		enemycount += (p->score *
-			       ((infg.stg / 128) + infg_level + 1));
-		p->state = delete_chara;
-		p->collision = noaction;
-		p->f = FALSE;
-		return 0;
-	    }
-	}
-    }
-
-    for (i1 = 0; i1 < tama_lv2_end + 1; i1++) {
-	if ((tama_lv2[i1].x + 128 + 64 > ex)
-	    && (ex + w > tama_lv2[i1].x + 128)
-	    && (tama_lv2[i1].y + 192 > ey) && (tama_lv2[i1].y < ey + h)
-	    && (tama_lv2[i1].rr != -1)) {
-	    tama_lv2[i1].rr = -1;
-	    p->vit -= TAMALV2P;
-	    infg.stg++;
-	    if (p->vit <= 0) {
-		infg.stg += 4;
-		Bom(p->x, p->y, bomend, bchar);
-		enemycount += (p->score *
-			       ((infg.stg / 128) + infg_level + 1));
-		p->state = delete_chara;
-		p->collision = noaction;
-		p->f = FALSE;
-		return 0;
-	    }
-	}
-
-	if ((tama_lv2[i1].x + 64 + 64 > ex)
-	    && (ex + w > tama_lv2[i1].x + 16)
-	    && (tama_lv2[i1].y - 32 + 192 > ey)
-	    && (tama_lv2[i1].y - 32 < ey + h)
-	    && (tama_lv2[i1].sr != -1)) {
-	    tama_lv2[i1].sr = -1;
-	    p->vit -= TAMALV2P;
-	    infg.stg++;
-	    if (p->vit <= 0) {
-		infg.stg += 4;
-		Bom(p->x, p->y, bomend, bchar);
-		enemycount += (p->score *
-			       ((infg.stg / 128) + infg_level + 1));
-		p->state = delete_chara;
-		p->collision = noaction;
-		p->f = FALSE;
-		return 0;
-	    }
-	}
-	if ((tama_lv2[i1].x + 64 > ex) && (ex + w > tama_lv2[i1].x)
-	    && (tama_lv2[i1].y - 32 + 192 > ey)
-	    && (tama_lv2[i1].y - 32 < ey + h)
-	    && (tama_lv2[i1].sl != -1)) {
-	    tama_lv2[i1].sl = -1;
-	    p->vit -= TAMALV2P;
-	    infg.stg++;
-	    if (p->vit <= 0) {
-		infg.stg += 4;
-		Bom(p->x, p->y, bomend, bchar);
-		enemycount += (p->score *
-			       ((infg.stg / 128) + infg_level + 1));
-		p->state = delete_chara;
-		p->collision = noaction;
-		p->f = FALSE;
-		return 0;
-	    }
-	}
-	if ((tama_lv2[i1].x - 64 + 64 > ex)
-	    && (ex + w > tama_lv2[i1].x - 64)
-	    && (tama_lv2[i1].y + 192 > ey) && (tama_lv2[i1].y < ey + h)
-	    && (tama_lv2[i1].ll != -1)) {
-	    tama_lv2[i1].ll = -1;
-	    p->vit -= TAMALV2P;
-	    infg.stg++;
-	    if (p->vit <= 0) {
-		infg.stg += 4;
-		Bom(p->x, p->y, bomend, bchar);
-		enemycount += (p->score *
-			       ((infg.stg / 128) + infg_level + 1));
-		p->state = delete_chara;
-		p->collision = noaction;
-		p->f = FALSE;
-		return 0;
-	    }
-	}
-    }
-    if ((tlv3[0].r > 0) && (jiki->x < ex + w) && (jiki->x + 128 > ex)
-	&& (jiki->y > ey + h)) {
-	p->vit -= TAMALV3P;
-	infg.stg++;
-	if (p->vit <= 0) {
-	    infg.stg += 4;
-	    Bom(p->x, p->y, bomend, bchar);
-	    enemycount += (p->score *
-			   ((infg.stg / 128) + infg_level + 1));
-	    p->state = delete_chara;
-	    p->collision = noaction;
-	    p->f = FALSE;
-	    return 0;
-	}
-    }
-  jumping:
-    if ((tlv3[0].r > 0) && (jiki->x < ex + w) && (jiki->x + 128 > ex)
-	&& (jiki->y + 128 > ey) && (jiki->y < ey + h)) {
-	p->vit -= TAMALV3P;
-	infg.stg++;
-	if (p->vit <= 0) {
-	    infg.stg += 4;
-	    Bom(p->x, p->y, bomend, bchar);
-	    enemycount += (p->score *
-			   ((infg.stg / 128) + infg_level + 1));
-	    p->state = delete_chara;
-	    p->collision = noaction;
-	    p->f = FALSE;
-	    return 0;
-	}
-    }
-    /*laser lv1 */
-    for (i1 = 0; i1 < laser_lv1_end + 1; i1++) {
-	n = laser_lv1[i1].r * 128 / 4096;
-
-	if ((laser_lv1[i1].x + n > ex) && (ex + w > laser_lv1[i1].x)
-	    && (laser_lv1[i1].y + n > ey) && (laser_lv1[i1].y < ey + h)
-	    && (laser_lv1[i1].r != -1)) {
-	    laser_lv1[i1].r = -1;
-	    laser_lv1[i1].y = -1;
-	    p->vit -= LASERLV1P;
-	    infg.stg++;
-	    if (p->vit <= 0) {
-		infg.stg += 4;
-		Bom(p->x, p->y, bomend, bchar);
-		enemycount += (p->score *
-			       ((infg.stg / 128) + infg_level + 1));
-		p->state = delete_chara;
-		p->collision = noaction;
-		p->f = FALSE;
-		return 0;
-	    }
-	}
-    }
-    /*shield(laser lv2) */
-    if ((p->tama == TRUE) && (lg.stg > 0) &&
-	(laser_lv2[0].x + 128 > ex) && (ex + w > laser_lv2[0].x - 128)
-	&& (laser_lv2[0].y + 128 > ey) && (laser_lv2[0].y - 128 < ey + h)
-	&& (laser_lv2[0].r != 0)) {
-	p->vit -= LASERLV2P;
-	lg.stg -= 26;
-	infg.stg++;
-	if (p->vit <= 0) {
-	    infg.stg += 4;
-	    Bom(p->x, p->y, bomend, bchar);
-	    enemycount += (p->score *
-			   ((infg.stg / 128) + infg_level + 1));
-	    p->state = delete_chara;
-	    p->collision = noaction;
-	    p->f = FALSE;
-	    return 0;
-	}
-    }
-    /*bomber(laser lv3) */
-    if (laser_lv3[0].r < 62) {
-	for (i1 = 1; i1 < 128; i1++) {
-	    if ((laser_lv3[i1].x + 128 > ex) && (ex + w > laser_lv3[i1].x)
-		&& (laser_lv3[i1].y + 128 > ey)
-		&& (laser_lv3[i1].y < ey + h)
-		&& (laser_lv3[i1].r > 0)) {
-		tama_lv2[i1].rr = -1;
-		p->vit -= LASERLV3P;
-		infg.stg++;
-		if (p->vit <= 0) {
-		    infg.stg += 4;
-		    Bom(p->x, p->y, bomend, bchar);
-		    enemycount += (p->score *
-				   ((infg.stg / 128) + infg_level + 1));
-		    p->state = delete_chara;
-		    p->collision = noaction;
-		    p->f = FALSE;
-		    return 0;
-		}
-	    }
-	}
-    }
-    smanager->swap();
-    return 0;
-}
--- a/ppe/collision.h	Tue Dec 14 00:54:07 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-#ifndef INCLUDE_COLLISION
-#define INCLUDE_COLLISION
-
-#include "SchedTask.h"
-
-#endif
--- a/task_dandy.h	Tue Dec 14 00:54:07 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-#ifndef INCLUDE_TASK_DANDY
-#define INCLUDE_TASK_DANDY
-
-extern TaskManager *tmanager;
-
-#endif