1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
/*
* $Id: morphbullet.d,v 1.3 2004/05/14 14:35:37 kenta Exp $
*
* Copyright 2004 Kenta Cho. All rights reserved.
*/
module abagames.tf.morphbullet;
private import bulletml;
private import abagames.util.bulletml.bullet;
/**
* Bullet with the bulletsmorph.
*/
public class MorphBullet: Bullet {
public:
static const int MORPH_MAX = 8;
BulletMLParser *[MORPH_MAX] parser;
float[MORPH_MAX] ranks;
float[MORPH_MAX] speeds;
int morphNum;
int morphIdx;
private:
public this(int id) {
super(id);
}
public void setMorph(BulletMLParser *[] p, float[] r, float[] s, int mn, int mi) {
morphNum = mn;
morphIdx = mi;
for (int i = 0; i < mn; i++) {
parser[i] = p[i];
ranks[i] = r[i];
speeds[i] = s[i];
}
}
public void resetMorph() {
morphIdx = 0;
}
}
|