public InternalSellInfo() { Add(typeof(BarkeepContract), BarkeepContract.GetSBSellValue()); Add(typeof(Jug), Jug.GetSBSellValue()); Add(typeof(BeverageBottle), BeverageBottle.GetSBSellValue()); Add(typeof(Pitcher), Pitcher.GetSBSellValue()); Add(typeof(GlassMug), GlassMug.GetSBSellValue()); Add(typeof(Chessboard), Chessboard.GetSBSellValue()); Add(typeof(CheckerBoard), CheckerBoard.GetSBSellValue()); Add(typeof(Backgammon), Backgammon.GetSBSellValue()); Add(typeof(Dices), Dices.GetSBSellValue()); }
public InternalSellInfo() { Add(typeof(VendorRentalContract), VendorRentalContract.GetSBSellValue()); Add(typeof(Torch), Torch.GetSBSellValue()); Add(typeof(Candle), Candle.GetSBSellValue()); Add(typeof(Backpack), Backpack.GetSBSellValue()); Add(typeof(Bag), Bag.GetSBSellValue()); Add(typeof(Pouch), Pouch.GetSBSellValue()); Add(typeof(Chessboard), Chessboard.GetSBSellValue()); Add(typeof(CheckerBoard), CheckerBoard.GetSBSellValue()); Add(typeof(Backgammon), Backgammon.GetSBSellValue()); Add(typeof(Dices), Dices.GetSBSellValue()); }
public InternalBuyInfo() { Add(new GenericBuyInfo("Vendor Rental Contract", typeof(VendorRentalContract), VendorRentalContract.GetSBPurchaseValue(), 25, 0x14F0, 0)); Add(new GenericBuyInfo("Lantern", typeof(Lantern), Lantern.GetSBPurchaseValue(), 25, 0xA25, 0)); Add(new GenericBuyInfo("Torch", typeof(Torch), Torch.GetSBPurchaseValue(), 25, 0xF6B, 0)); Add(new GenericBuyInfo("Candle", typeof(Candle), Candle.GetSBPurchaseValue(), 25, 0xA28, 0)); Add(new GenericBuyInfo("Backpack", typeof(Backpack), Backpack.GetSBPurchaseValue(), 25, 0x9B2, 0)); Add(new GenericBuyInfo("Bag", typeof(Bag), Bag.GetSBPurchaseValue(), 25, 0xE76, 0)); Add(new GenericBuyInfo("Pouch", typeof(Pouch), Pouch.GetSBPurchaseValue(), 25, 0xE79, 0)); Add(new GenericBuyInfo("Chess Board", typeof(Chessboard), Chessboard.GetSBPurchaseValue(), 25, 0xFA6, 0)); Add(new GenericBuyInfo("Checker Board", typeof(CheckerBoard), CheckerBoard.GetSBPurchaseValue(), 25, 0xFA6, 0)); Add(new GenericBuyInfo("Backgammon", typeof(Backgammon), Backgammon.GetSBPurchaseValue(), 25, 0xE1C, 0)); Add(new GenericBuyInfo("Dice", typeof(Dices), Dices.GetSBPurchaseValue(), 25, 0xFA7, 0)); }
public InternalBuyInfo() { Add(new GenericBuyInfo("Barkeep Contract", typeof(BarkeepContract), 6250, 20, 0x14F0, 0)); Add(new BeverageBuyInfo("Jug of Cider", typeof(Jug), BeverageType.Cider, Jug.GetSBPurchaseValue(), 25, 0x9C8, 0)); Add(new BeverageBuyInfo("Bottle of Ale", typeof(BeverageBottle), BeverageType.Ale, BeverageBottle.GetSBPurchaseValue(), 25, 0x99F, 0)); Add(new BeverageBuyInfo("Bottle of Wine", typeof(BeverageBottle), BeverageType.Wine, BeverageBottle.GetSBPurchaseValue(), 25, 0x9C7, 0)); Add(new BeverageBuyInfo("Bottle of Liquor", typeof(BeverageBottle), BeverageType.Liquor, BeverageBottle.GetSBPurchaseValue(), 25, 0x99B, 0)); Add(new BeverageBuyInfo("Pitcher of Milk", typeof(Pitcher), BeverageType.Milk, Pitcher.GetSBPurchaseValue(), 25, 0x9F0, 0)); Add(new BeverageBuyInfo("Pitcher of Ale", typeof(Pitcher), BeverageType.Ale, Pitcher.GetSBPurchaseValue(), 25, 0x1F95, 0)); Add(new BeverageBuyInfo("Pitcher of Cider", typeof(Pitcher), BeverageType.Cider, Pitcher.GetSBPurchaseValue(), 25, 0x1F97, 0)); Add(new BeverageBuyInfo("Pitcher of Liquor", typeof(Pitcher), BeverageType.Liquor, Pitcher.GetSBPurchaseValue(), 25, 0x1F99, 0)); Add(new BeverageBuyInfo("Pitcher of Wine", typeof(Pitcher), BeverageType.Wine, Pitcher.GetSBPurchaseValue(), 25, 0x1F9B, 0)); Add(new BeverageBuyInfo("Pitcher of Water", typeof(Pitcher), BeverageType.Water, Pitcher.GetSBPurchaseValue(), 25, 0x1F9D, 0)); Add(new GenericBuyInfo("Chess Board", typeof(Chessboard), Chessboard.GetSBPurchaseValue(), 25, 0xFA6, 0)); Add(new GenericBuyInfo("Checker Board", typeof(CheckerBoard), CheckerBoard.GetSBPurchaseValue(), 25, 0xFA6, 0)); Add(new GenericBuyInfo("Backgammon", typeof(Backgammon), Backgammon.GetSBPurchaseValue(), 25, 0xE1C, 0)); Add(new GenericBuyInfo("Dice", typeof(Dices), Dices.GetSBPurchaseValue(), 25, 0xFA7, 0)); }
public UIInitialization(Backgammon window) { window.InitializeComponent(); if (window.Master) { window.WhiteUser = new WhiteUser(window); Grid.SetRow(window.WhiteUser, 1); Grid.SetColumn(window.WhiteUser, 0); window.windowGrid.Children.Add(window.WhiteUser); } else { window.BlackUser = new BlackUser(window); Grid.SetRow(window.BlackUser, 1); Grid.SetColumn(window.BlackUser, 0); window.windowGrid.Children.Add(window.BlackUser); } _window = window; _window.Dice1 = new Dice(); _window.Dice2 = new Dice(); _window.BarGameInfo = new BarGameInfo(); SetColors(); SetColection(); SetTopMenu(); SetStartInfo(); //Binding _window.titleLeft.Text = $"Backgammon with {_window.Opponent}"; _window.titleCenter.DataContext = _window.BarGameInfo; _window.titleRight.DataContext = _window.BarGameInfo; //_window.opponentName.DataContext = _window.Opponent; _window.userName.DataContext = $"Dear {_window.User}"; _window.diceImage1.DataContext = _window.Dice1; _window.diceImage2.DataContext = _window.Dice2; _window.gameInfo.DataContext = _window.GameInfo; _window.DataContext = _window; #region Events of Collections Registration _window.ListAllCollections[0].CollectionChanged += Col1_CollectionChanged; _window.ListAllCollections[1].CollectionChanged += Col2_CollectionChanged; _window.ListAllCollections[2].CollectionChanged += Col3_CollectionChanged; _window.ListAllCollections[3].CollectionChanged += Col4_CollectionChanged; _window.ListAllCollections[4].CollectionChanged += Col5_CollectionChanged; _window.ListAllCollections[5].CollectionChanged += Col6_CollectionChanged; _window.ListAllCollections[6].CollectionChanged += Col7_CollectionChanged; _window.ListAllCollections[7].CollectionChanged += Col8_CollectionChanged; _window.ListAllCollections[8].CollectionChanged += Col9_CollectionChanged; _window.ListAllCollections[9].CollectionChanged += Col10_CollectionChanged; _window.ListAllCollections[10].CollectionChanged += Col11_CollectionChanged; _window.ListAllCollections[11].CollectionChanged += Col12_CollectionChanged; _window.ListAllCollections[12].CollectionChanged += Col13_CollectionChanged; _window.ListAllCollections[13].CollectionChanged += Col14_CollectionChanged; _window.ListAllCollections[14].CollectionChanged += Col15_CollectionChanged; _window.ListAllCollections[15].CollectionChanged += Col16_CollectionChanged; _window.ListAllCollections[16].CollectionChanged += Col17_CollectionChanged; _window.ListAllCollections[17].CollectionChanged += Col18_CollectionChanged; _window.ListAllCollections[18].CollectionChanged += Col19_CollectionChanged; _window.ListAllCollections[19].CollectionChanged += Col20_CollectionChanged; _window.ListAllCollections[20].CollectionChanged += Col21_CollectionChanged; _window.ListAllCollections[21].CollectionChanged += Col22_CollectionChanged; _window.ListAllCollections[22].CollectionChanged += Col23_CollectionChanged; _window.ListAllCollections[23].CollectionChanged += Col24_CollectionChanged; #endregion }
public WhiteUser(Backgammon backgammon) { InitializeComponent(); _backgammon = backgammon; _checkerLogic = new СheckerLogic(backgammon); }
public DiceAction(Backgammon game) { _game = game; }