コード例 #1
0
ファイル: organism.cs プロジェクト: Kluuucha/SLSim
        public void split(int x, int y)
        {
            Organism next = new Organism(species, sightDistance, ferocity, maxValue, speed, currValue / 2);

            currValue -= currValue / 2;
            next.posX  = x;
            next.posY  = y;

            next.mutate();
            this.mutate();

            Simulation.simulationGrid.Add(next.key(), next);
        }