/// <summary> /// Create a horse with no parents /// </summary> public Horse() { this._breeder = new HorseBreeder(); _breeder.CreateBody(); _breeder.CreateHead(); _breeder.CreateTail(); }
/// <summary> /// Create a horse with parents /// </summary> /// <param name="parent1">First parent of the horse</param> /// <param name="parent2">Second parent of the horse</param> public Horse(Horse parent1, Horse parent2) { this._parent1 = parent1; this._parent2 = parent2; this._breeder = new HorseBreeder(); _breeder.CreateBody(parent1, parent2); _breeder.CreateHead(parent1, parent2); _breeder.CreateTail(parent1, parent2); }