class BugAgressive extends BugBase { public BugAgressive(Vector2D position, float size, float speed, int type_) { super(position, size, speed, type_); } void doExtraCollides(int myIdx) { farcollideWithWalker(); } void farcollideWithWalker() { if (state == sSTAND) { Vector2D walkPos = new Vector2D(hero.x, hero.y); if (position.isCirclePointCollision(size + 100, walkPos)) { velocity.zero(); state = sROTATETOWALKER; } } } void setStrokeAndFill() //meant to be owerrided { if (state != sROTATETOWALKER) { noFill(); stroke(color(130, 111, 111)); } else { noFill(); stroke(color(170, 111, 111)); } } void collideWithBugs(int myIdx) { /*for (int i=0; i