public void eat(Organism other) { addEnergy(other.getFoodValue()); // increase own energy by amount gained from eating other.die(); // make the other organism die }