Ejemplo n.º 1
0
 public TestTrader(GInt gInt, int?p) : base(gInt, "Торговец С. О. Лями", p,
                                            new List <IBaseActions>
 {
     new DealerAction(new List <CItemInventory>
     {
         new CItemInventory(GItemsList.GetId("Палка")),
     }
                      , 10)
     ,
     new DealerAction(new List <CItemInventory>
     {
         new CItemInventory(GItemsList.GetId("Говно"))
     }
                      , 20),
     new DealerAction(new List <CItemInventory>
     {
         new CItemInventory(GItemsList.GetId("Металл"))
     }
                      , 40),
 },
                                            "/img/baryga.jpg"
                                            )
 {
     Description = "Я вас категорически приветствую.\nПока вы осматриваете ассортимент,\nпредлагаю отведать наш новый эликсир здоровья.";
 }
Ejemplo n.º 2
0
 public AmuletTrader(GInt gInt, int?p) :
     base(gInt, "Торговец амулетами", p, new List <IBaseActions>
 {
     new EquipmentTraderAction(
         new CEquipmentGenerator <CAmulet>(
             1300,
             new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 0.95, 0.95, 0.95, 0.95),
             new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 1.2, 1.2, 1.2, 1.2),
             5
             ), 20
         ),
     new EquipmentTraderAction(
         new CEquipmentGenerator <CAmulet>(
             1301,
             new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 1.1, 1.1, 1.1, 1.1),
             new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2),
             3
             ), 50
         ),
     new EquipmentTraderAction(
         new CEquipmentGenerator <CAmulet>(
             1302,
             new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 0.4, 0.4, 0.4, 0.4),
             new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3),
             4
             ), 250
         ),
 }, "/img/weapon_trader.png")
 {
     Description = "Я вас категорически приветствую.\nНет, мы раньше не виделись.\n Что значит видел такое тело?\nЛибо покупай амулеты, либо выметывайся!";
 }
Ejemplo n.º 3
0
 public SwordTrader(GInt gInt, int?p) :
     base(gInt, "Торговец мечами", p, new List <IBaseActions>
 {
     new EquipmentTraderAction(
         new CEquipmentGenerator <CSword>(
             1200,
             new CCultivator.CStats(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
             new CCultivator.CStats(2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1),
             5
             ), 10
         ),
     new EquipmentTraderAction(
         new CEquipmentGenerator <CSword>(
             1201,
             new CCultivator.CStats(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
             new CCultivator.CStats(10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1),
             3
             ), 100
         ),
     new EquipmentTraderAction(
         new CEquipmentGenerator <CSword>(
             1202,
             new CCultivator.CStats(4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1),
             new CCultivator.CStats(5, 5, 5, 5, 5, 5, 5, 1, 1, 1, 1),
             6
             ), 75
         ),
     new EquipmentTraderAction(
         new CEquipmentGenerator <CSword>(
             1203,
             new CCultivator.CStats(2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1),
             new CCultivator.CStats(4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1),
             4
             ), 25
         ),
     new EquipmentTraderAction(
         new CEquipmentGenerator <CSword>(
             1204,
             new CCultivator.CStats(9, 9, 9, 9, 9, 9, 9, 1, 1, 1, 1),
             new CCultivator.CStats(15, 15, 15, 15, 15, 15, 15, 1, 1, 1, 1),
             4
             ), 200
         ),
 }, "/img/weapon_trader.png")
 {
     Description = "Я вас категорически приветствую.\nНет, мы раньше не виделись.\n Что значит видел такое тело?\nЛибо покупай мечи, либо выметывайся!";
 }
Ejemplo n.º 4
0
 /*
  * public string Description { get; set; }
  * public List<CLocation> SubLocations { get; set; }
  * public CLocation ParentLoc { get; set; }
  * public List<CLocation> NeighboringLocs { get; set; }
  * public List<LCLocation> Directions { get; set; }
  * public List<LCMob> Mobs { get; set; }
  * public List<LCItems> Collectibles { get; set; }
  * public List<LCMob> LegendaryMobs { get; set; }
  * public List<IBaseActions> Actions { get; set; }
  */
 public Necropolis(GInt counter, int?p) : base(counter, "Метрополис", p,
                                               "/img/necropolis.jpg", "/img/Necropolissmall.png")
 {
     Description  = "Стартовый город для новичков";
     SubLocations = new List <CLocation> {
         new NecropolisMarket(counter, Id)
     };
     Directions = new List <LCLocation>();
     foreach (var i in SubLocations)
     {
         Directions.Add(new LCLocation
         {
             LocationId = i.Id,
             Time       = 0
         });
     }
 }
Ejemplo n.º 5
0
 public NewTown(GInt gInt, int?p) : base(gInt, "Город света", p,
                                         "/img/newtown.jpg", "/img/newtown.jpg")
 {
     Description  = "новый город для продвинутых игроков";
     SubLocations = new List <CLocation>
     {
         new NewTownMarket(gInt, Id)
     };
     Directions = new List <LCLocation>();
     foreach (var i in SubLocations)
     {
         Directions.Add(new LCLocation
         {
             LocationId = i.Id,
             Time       = 0
         });
     }
 }
Ejemplo n.º 6
0
 public NecropolisMarket(GInt gInt, int?p) : base(gInt, "Рынок Метрополиса", p,
                                                  "/img/shop-icon.png", "/img/shop-icon.png")
 {
     Description  = "Пока есть только торговец палками";
     SubLocations = new List <CLocation>
     {
         new TestTrader(gInt, Id),
         new TestEquipmentTrader(gInt, Id),
     };
     Directions = new List <LCLocation>();
     foreach (var i in SubLocations)
     {
         Directions.Add(new LCLocation
         {
             LocationId = i.Id,
             Time       = 0
         });
     }
 }
Ejemplo n.º 7
0
 public NewTownMarket(GInt gInt, int?p) : base(gInt, "Рынок города света", p,
                                               "/img/shop-icon.png", "/img/shop-icon.png")
 {
     Description  = "";
     SubLocations = new List <CLocation>
     {
         new SwordTrader(gInt, Id),
         new AmuletTrader(gInt, Id),
     };
     Directions = new List <LCLocation>();
     foreach (var i in SubLocations)
     {
         Directions.Add(new LCLocation
         {
             LocationId = i.Id,
             Time       = 0
         });
     }
 }
Ejemplo n.º 8
0
 public CWorld(GInt id) : base(id, "Элдария", 0)
 {
     SubLocations = new List <CLocation> {
         new Necropolis(id, Id),
         new NewTown(id, Id),
     };
     // Ну и типа описываем наш граф.
     // Можно потом карту отображать в зависимости от
     // текущей позиции героя. Хз как.
     //
     Map = new Dictionary <int, List <CBuilding> >();
     Map[SubLocations[0].Id] = new List <CBuilding>
     {
         (CBuilding)SubLocations[1],
     };
     Map[SubLocations[1].Id] = new List <CBuilding>
     {
         (CBuilding)SubLocations[0],
     };
 }
Ejemplo n.º 9
0
 public TestEquipmentTrader(GInt gInt, int?p) :
     base(gInt, "В. О. Лоеб", p, new List <IBaseActions>
 {
     new EquipmentTraderAction(new CEquipmentGenerator <CLeggins>(1000,
                                                                  new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1),
                                                                  new CCultivator.CStats(3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1)
                                                                  , 3) // Матожидание распределения
                               , 40),                                  //Цена
     new EquipmentTraderAction(new CEquipmentGenerator <CLeggins>(1001,
                                                                  new CCultivator.CStats(1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1),
                                                                  new CCultivator.CStats(5, 5, 5, 5, 3, 3, 3, 1, 1, 1, 1)
                                                                  , 4)
                               , 60),
     new EquipmentTraderAction(new CEquipmentGenerator <CPlate>(1010,
                                                                new CCultivator.CStats(0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1),
                                                                new CCultivator.CStats(3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1)
                                                                , 7) // Матожидание распределения
                               , 70)                                 ////Цена
 }, "/img/weapon_trader.png")
 {
     Description = "Я вас категорически приветствую.\nНет, мы раньше не виделись.\n Что значит видел такое тело?\nЛибо покупай товар, либо выметывайся!";
 }
Ejemplo n.º 10
0
 public CBuilding(GInt gInt, string name, int?p, string BigP, string SmallP) : base(gInt, name, p)
 {
     BigPicture   = BigP;
     SmallPicture = SmallP;
     //todo Хз что но можно
 }
Ejemplo n.º 11
0
 public static void init()
 {
     Counter = new GInt();
     World   = new CWorld(Counter);
 }
Ejemplo n.º 12
0
 /*
  * public string Id { get; set; }
  * public string Name { get; set; }
  * public string Description { get; set; }
  * public List<CLocation> SubLocations { get; set; }
  * public List<LCMob> Mobs { get; set; }
  * public List<LCItems> Collectibles { get; set; }
  * public List<LCMob> LegendaryMobs { get; set; }
  * public List<IBaseActions> Actions { get; set; }
  */
 public CDealer(GInt gInt, string name, int?p, List <IBaseActions> products, string por) : base(gInt, name, p, por)
 {
     Actions = products;
 }
Ejemplo n.º 13
0
 public CBaseTrader(GInt gInt, string name, int?p, string portret) : base(gInt, name, p, portret)
 {
 }
Ejemplo n.º 14
0
 /*
  * public string Id { get; set; }
  * public string Name { get; set; }
  * public string Description { get; set; }
  * public List<CLocation> SubLocations { get; set; }
  * public List<LCMob> Mobs { get; set; }
  * public List<LCItems> Collectibles { get; set; }
  * public List<LCMob> LegendaryMobs { get; set; }
  * public List<IBaseActions> Actions { get; set; }
  */
 public CBaseEquipmentTrader(GInt gInt, string name, int?p, List <IBaseActions> products, string por) : base(gInt, name, p, por)
 {
     Actions = products;
 }
Ejemplo n.º 15
0
 public CNPC(GInt gInt, string name, int?p, string portret) : base(gInt, name, p)
 {
     Portret = portret;
     //todo Хз что но можно
 }
Ejemplo n.º 16
0
 public CTown(GInt gInt, string name, int?p, string BigP, string SmallP) : base(gInt, name, p, BigP, SmallP)
 {
 }