CellsAutomate.Creator.MakeChild C# (CSharp) Method

MakeChild() public abstract method

public abstract MakeChild ( BaseCreature parent ) : BaseCreature
parent CellsAutomate.Creatures.BaseCreature
return CellsAutomate.Creatures.BaseCreature
        public abstract BaseCreature MakeChild(BaseCreature parent);

Usage Example

示例#1
0
        public Membrane MakeChild(Point childPosition)
        {
            _energyPoints -= CreatureConstants.ChildPrice;
            var child = _creator.MakeChild(Creature);

            return(new Membrane(child, _random, childPosition, Generation + 1, _parentMark, _creator));
        }