class Goon extends Ship{/////////// ******************************* Goon ************************//////////////// int type; boolean alive=true; boolean inBoss; void update(){ unique(); checkWalls(); movement(); checkCollision(); render(); } boolean following(){ return false; } void isOnLine(Vector3D v1, Vector3D v2){ } void checkCollision(){ if(h.hitWingMan(pos,rad)){ monsters.remove(this); alive = false; } } void adoptGrandkid(Sucker c,boolean b){//this is for the octopus } boolean alive(){ return alive; } void setFollowing(boolean b){ } void setLast(){ } void checkWalls(){ if(pos.x<0){ vel.x=abs(vel.x); } if(pos.x>width){ vel.x=-abs(vel.x); } if(pos.y<0){ vel.y=abs(vel.y); } if(pos.y>height){ vel.y=-abs(vel.y); } } void unique(){ } int type(){ return type; } }