Ejemplo n.º 1
0
        public HouseBuilding(IBot bot)
            : base(bot)
        {
            this.furnitureManager = new FurnitureManager(bot);
            this.houseManager = new HouseManager(bot);

            HouseType tinyHouse = new HouseType("tinyhouse", 7, 7, 46, 48, 541);
            tinyHouse.AddCost("stone", 25);
            HouseType smallHouse = new HouseType("smallhouse", 9, 9, 93, 93);
            smallHouse.AddCost("stone", 100);
            HouseType mediumHouse = new HouseType("mediumhouse", 11, 11, 1023, 1024);
            mediumHouse.AddCost("stone", 400);
            mediumHouse.AddCost("copper", 20);
            HouseType largeHouse = new HouseType("largehouse", 13, 13, 14, 1018, 505);
            largeHouse.AddCost("stone", 600);
            largeHouse.AddCost("iron", 30);
            HouseType veryLargeHouse = new HouseType("verylargehouse", 15, 15, 1021, 42);
            veryLargeHouse.AddCost("stone", 800);
            veryLargeHouse.AddCost("gold", 50);
            HouseType hugeHouse = new HouseType("hugehouse", 17, 17, 196, 195, 618);
            hugeHouse.AddCost("stone", 1000);
            hugeHouse.AddCost("copper", 50);
            hugeHouse.AddCost("iron", 50);
            hugeHouse.AddCost("gold", 50);

            HouseType weirdHouse = new HouseType("weirdhouse", 17, 5, 80, 82, 548);
            weirdHouse.AddCost("stone", 400);
            HouseType strangeHouse = new HouseType("strangehouse", 3, 15, 50, 156, 575);
            strangeHouse.AddCost("stone", 300);
            HouseType candyHouse = new HouseType("candyhouse", 11, 11, 67, 60, 539);
            candyHouse.AddCost("stone", 400);
            candyHouse.AddCost("copper", 50);
            HouseType basicHouse = new HouseType("basichouse", 11, 11, 9, 10, 501);
            basicHouse.AddCost("stone", 400);
            HouseType brickHouse = new HouseType("brickhouse", 11, 11, 1024, 1023, 647);
            brickHouse.AddCost("stone", 400);
            HouseType coinHouse = new HouseType("coinhouse", 5, 5, 41, 100, 581);
            coinHouse.AddCost("stone", 400);

            this.houseManager.RegisterHouseType(tinyHouse);
            this.houseManager.RegisterHouseType(smallHouse);
            this.houseManager.RegisterHouseType(mediumHouse);
            this.houseManager.RegisterHouseType(largeHouse);
            this.houseManager.RegisterHouseType(veryLargeHouse);
            this.houseManager.RegisterHouseType(hugeHouse);

            this.houseManager.RegisterHouseType(weirdHouse);
            this.houseManager.RegisterHouseType(strangeHouse);
            this.houseManager.RegisterHouseType(candyHouse);
            this.houseManager.RegisterHouseType(basicHouse);
            this.houseManager.RegisterHouseType(brickHouse);
            this.houseManager.RegisterHouseType(coinHouse);

            EnableTick(5000);
        }
Ejemplo n.º 2
0
        public House(HouseType houseType,
			string builder,
			int x,
			int y,
			int width,
			int height,
			HouseState houseState = HouseState.Building)
        {
            this.houseType = houseType;
            this.houseState = houseState;
            this.builder = builder;
            this.x = x;
            this.y = y;
            this.width = width;
            this.height = height;
        }
Ejemplo n.º 3
0
        public bool RegisterHouseType(HouseType houseType)
        {
            if (houseTypes.ContainsKey(houseType.Name))
                return false;

            houseTypes.Add(houseType.Name, houseType);
            return true;
        }