Esempio n. 1
0
 public Mine()
 {
     keyboard = new Keyboard();
     pos      = new OreLists();
     //     SetMiningView();
     //   ClickOre();
 }
Esempio n. 2
0
        private static void Arguments(string arg, string op, ZoneInfo info)
        {
            if (arg.Equals("mine") && op != "")
            {
                Mine     m = new Mine();
                OreLists o = new OreLists();

                Rotation mage = new MageRotate();

                List <Point> ores = o.MineMap(op);

                int zone = o.MineZone(op);

                bool sameZone = zone == info.GetContinent(GameInfo.GetMapId());

                if (!sameZone)
                {
                    Console.WriteLine("Error: Ores in different continent");
                }

                else if (ores.Count > 0)
                {
                    m.GatherOres(ores, mage);
                }
            }

            else if (arg.Equals("walk"))
            {
                Travel t = new Travel();
                t.TravelWalk(op);
            }

            else if (arg.Equals("fly"))
            {
            }
        }