Пример #1
0
        public Henhouse(BuildingCollection ctx, IBuildingFactory factory, Vector posVector)
        {
            CtxCollection = ctx ?? throw new ArgumentNullException(nameof(ctx));
            PosVector     = posVector;
            Racks         = new List <IRack> {
                new SeedRack(this)
            };
            Factory       = factory;
            MaxCapacity   = FarmOptions.DefaultHenHouseLimit;
            Lvl           = 0;
            Chikens       = new List <Chicken>(MaxCapacity * Lvl);
            DyingChickens = new List <Chicken>();
            var interactionZonePos = new Vector(posVector.X + 20, PosVector.Y + 96);

            InteractionZone = new InteractionZone(interactionZonePos, 15, 15);
        }
Пример #2
0
 public bool CheckIfInside(InteractionZone interactionZone)
 {
     return(true);
 }