9 package micropolisj.engine;
25 static int [] CDx = { 0, 0, 3, 5, 3, 0, -3, -5, -3 };
26 static int [] CDy = { 0, -5, -3, 0, 3, 5, 3, 0, -3 };
27 static final int SOUND_FREQ = 200;
32 this.
x = xpos * 16 + 8;
33 this.
y = ypos * 16 + 8;
39 this.destX = city.PRNG.nextInt(city.
getWidth()) * 16 + 8;
40 this.destY = city.PRNG.nextInt(city.
getHeight()) * 16 + 8;
55 if (this.count == 0) {
61 this.destX = monster.
x;
62 this.destY = monster.
y;
68 this.destX = tornado.
x;
69 this.destY = tornado.
y;
77 if (getDis(
x,
y, origX, origY) < 30) {
84 if (city.acycle % SOUND_FREQ == 0) {
86 int xpos = this.
x / 16;
87 int ypos = this.
y / 16;
90 city.PRNG.nextInt(8) == 0)
99 if (city.acycle % 3 == 0) {
100 int d = getDir(
x,
y, destX, destY);