/// <summary> /// Отметить прохолост (самка не окролилась) /// </summary> /// <param name="when">Дата установки прохолоста</param> public void ProholostIt(int daysPast) { if (Sex != Rabbit.SexType.FEMALE) { throw new ExNotFemale(this); } if (EventDate == DateTime.MinValue) { throw new ExNotFucked(this); } //if (when > DateTime.Now) throw new ExBadDate(when); if (daysPast < 0) { throw new ExBadPastDays(); } _eng.logs().log(LogType.PROHOLOST, ID, 0, AddressSmall, "", daysPast != 0 ? String.Format(" {0:d} дней назад", daysPast) : ""); _eng.db().makeProholost(this._id, daysPast); if (_eng.options().getBoolOption(Options.OPT_ID.NEST_OUT_IF_PROHOLOST)) { //todo пиздец и говнокод и опасно но... RabNetEngBuilding rnd = RabNetEngBuilding.FromPlace(this.RawAddress, _eng); rnd.RabbitNestOut(this.ID); } }
public RabNetEngBuilding getBuilding(string place) { return(RabNetEngBuilding.FromPlace(place, this)); }