예제 #1
0
        public int turnRight(Organism target, int index)
        {
            double cost = 0.25 * energyMod;

            target.setAngle(target.getAngle() - turnMod);

            target.drainEnergy(cost);

            return index + 1;
        }