Beispiel #1
0
    public Computer()
    {
        MainMemory = new Memory.Memory();
        CIA1       = new CIA6526(this, 0xDC00);
        CIA2       = new CIA6526(this, 0xDD00);
        Cpu        = new Cpu6510(this);
        VICII      = new VICII(this);


        //Run();
    }
Beispiel #2
0
 public static int GetUnitIndexByGuid(Memory.Memory wow, UInt64 GUID)
 {
     for (int i = 0; i < wow.Objects.Count; i++)
     {
         if (wow.Objects[i].GUID == GUID)
         {
             return(i);
         }
     }
     return(-1);
 }
Beispiel #3
0
    public Cpu6510(Computer mb)
    {
        #region OPCODE_DEBUGGING

        foreach (var oc in Enum.GetValues(typeof(OpCode)) as OpCode[])
        {
            _opcodeStr[(int)oc] = oc.ToString().Split('_')[0];
        }
        #endregion

        _mb     = mb;
        _memory = mb.MainMemory;
        Reg     = new CpuRegister();
        SetupOpcodeDictionary();
    }
Beispiel #4
0
 public static void GetOnMount(Memory.Memory wow, int FlyOrGround)
 {
     if (Abilities.AbilityStatus != "Casting")
     {
         if ((wow.IsMounted == 0) & (wow.IsIndoors == 0))
         {
             wow.GoTo(0, 0, 0, 0, 3);//Stop
             WowControl.Sleep(500);
             WowControl.FarmStatus = "Mounting";
             if (FlyOrGround == 0)
             {
                 Abilities.Button("Fly mount");
             }
             else
             {
                 Abilities.Button("Ground mount");
             }
         }
     }
     if (wow.LastError == "Нельзя использовать в воде.")
     {
         InWater = 1;
         WowControl.FarmStatus = "In water";
     }
     else
     {
         InWater = 0;
     }
     if (wow.LastError == "Здесь нельзя ездить верхом.")
     {
         InDoors = 1;
     }
     else
     {
         InDoors = 0;
     }
 }
Beispiel #5
0
 public static void SelectTarget(UInt64 GUID)
 {
     Memory.Memory wow = new Memory.Memory();
     wow.SelectTarget(GUID);
 }
Beispiel #6
0
 public static void Stop()
 {
     Memory.Memory wow = new Memory.Memory();
     wow.GoTo(0, 0, 0, 0, 3);
 }
Beispiel #7
0
 public FarmHonor()
 {
     wow = new Memory.Memory();
     CurrentWP = 0;
 }
Beispiel #8
0
 public FarmHonor()
 {
     wow       = new Memory.Memory();
     CurrentWP = 0;
 }
Beispiel #9
0
 public FarmSkining()
 {
     wow = new Memory.Memory();
 }
Beispiel #10
0
 public static void Stop()
 {
     Memory.Memory wow = new Memory.Memory();
     wow.GoTo(0, 0, 0, 0, 3);
 }
Beispiel #11
0
 public static void SelectTarget(UInt64 GUID)
 {
     Memory.Memory wow = new Memory.Memory();
     wow.SelectTarget(GUID);
 }
Beispiel #12
0
 public FarmSkining()
 {
     wow = new Memory.Memory();
 }
Beispiel #13
0
 public FarmMining()
 {
     wow = new Memory.Memory();
     WPDetected = false;
     LootingObject = new WowControl.LootObject();
 }
Beispiel #14
0
 public FarmMining()
 {
     wow           = new Memory.Memory();
     WPDetected    = false;
     LootingObject = new WowControl.LootObject();
 }