/*hi[] arrayOfHi = new hi[50]; for (;;){ arrayOfHi[i].setParameters(0,13,413); } */ public class Monster { int x; int y; boolean moveLeft; boolean bumpDown; public Monster() { } public void setParametersint (int _x, int _y, boolean _alive) { x = _x; y = _y; } public boolean movement (int _x, int _speed) { if (_x <= 0) { moveLeft = false; y += 30; } else if (_x + 20 > 800) { moveLeft = true; y += 30; } return moveLeft; } public int getX () { return x; } public int getY () { return y; } public boolean isAlive (boolean _alive, int _x, int _y, int bullet_x, int bullet_y) { if (_alive == true && (bullet_x + 10) > _x && (bullet_x) < _x + 20 && (bullet_y) < _y + 20 && (bullet_y + 50) > _y) { _alive = false; } return _alive; } }