CellsAutomate.Creator.CreateAbstractCreature C# (CSharp) Method

CreateAbstractCreature() public abstract method

public abstract CreateAbstractCreature ( ) : BaseCreature
return CellsAutomate.Creatures.BaseCreature
        public abstract BaseCreature CreateAbstractCreature();

Usage Example

Exemplo n.º 1
0
        public void FillStartMatrixRandomly()
        {
            var random = new Random();

            for (int i = 0; i < Length; i++)
            {
                for (int j = 0; j < Height; j++)
                {
                    Creatures[i, j] = random.Next(1000) % 100 == 0 ? new Membrane(_creator.CreateAbstractCreature(), random, new Point(i, j), 1, 0, _creator) : null;
                }
            }
            FillMatrixWithFood();
        }