@Override public boolean shield(Segment otherSegment) { boolean shielded = false; AliveAgent thisAgent = getThisAgent(); if (isAlive() && thisAgent.useEnergy(Utils.getBLUE_ENERGY_CONSUMPTION())) { thisAgent.setColor(Color.BLUE); shielded = true; } return shielded; }