Exemplo n.º 1
0
 private void Start()
 {
     field       = ObjectsHolder.Instance.field;
     wizard      = ObjectsHolder.Instance.wizard;
     ui          = ObjectsHolder.Instance.uIManager;
     castManager = ObjectsHolder.Instance.castManager;
 }
Exemplo n.º 2
0
    private void Awake()
    {
        if (!Instance)
        {
            Instance = this;
            // DontDestroyOnLoad (this);
        }
        else
        {
            Destroy(this);
        }

        mainCamera      = Camera.main;
        Raycaster       = mainCamera.GetComponent <Physics2DRaycaster> ();
        spells          = FindObjectOfType <Spells> ();
        field           = FindObjectOfType <Field> ();
        buildingManager = FindObjectOfType <BuildingManager> ();
        attackManager   = FindObjectOfType <AttackManager> ();
        castManager     = FindObjectOfType <CastManager> ();
        enemyController = FindObjectOfType <EnemyController> ();
        touchController = FindObjectOfType <TouchController>();
        wizard          = FindObjectOfType <Wizard> ();
        xpPoints        = wizard.GetComponent <XPpoints> ();
        GameController  = FindObjectOfType <GameController> ();
        uIManager       = FindObjectOfType <UIManager> ();
        firePoints      = FindObjectOfType <FirePoints> ();
    }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            mPlayerView = FindViewById <JWPlayerView>(Resource.Id.jwplayer);
            TextView outputTextView = FindViewById <TextView>(Resource.Id.output);

            toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
            // Handle hiding/showing of ActionBar
            SetSupportActionBar(toolbar);
            mPlayerView.AddOnFullscreenListener(this);

            // Instantiate the JW Player event handler class
            mEventHandler = new JWEventHandler(mPlayerView, outputTextView);

            // Load a media source
            PlaylistItem pi = new PlaylistItem("http://playertest.longtailvideo.com/adaptive/bipbop/gear4/prog_index.m3u8");

            mPlayerView.Load(pi);
            mCastManager = CastManager.Instance;
            mCastManager.AddDeviceListener(new DeviceListener());
            mCastManager.AddPlayerListener(new PlayerListener());
            mCastManager.AddApplicationListener(new ApplicationListener());
            mCastManager.AddConnectionListener(new ConnectionListener());
            mCastManager.AddErrorListener(new ErrorListener());
        }
Exemplo n.º 4
0
 protected override void Volative_OnDraw(EventArgs args)
 {
     if (Drawinit && DrawManager.DrawMenu["dwq"].Cast <CheckBox>().CurrentValue)
     {
         foreach (var enemy in EntityManager.Heroes.Enemies.Where(e => e.Distance(Player) < _w.Range))
         {
             Drawing.DrawText(enemy.Position.WorldToScreen().X, enemy.Position.WorldToScreen().Y + 40,
                              Color.White,
                              "W/Q hits: : " + QHits(enemy));
         }
         foreach (
             var enemy in
             EntityManager.Heroes.Enemies.Where(
                 e => e.Distance(Player) < _w.Range * 1.6 && e.Distance(Player) > _w.Range))
         {
             Drawing.DrawText(enemy.Position.WorldToScreen().X, enemy.Position.WorldToScreen().Y + 40, Color.Red,
                              "W/Q hits: " + QHits(enemy));
         }
     }
     if (Drawinit && DrawManager.DrawMenu["dfq"].Cast <CheckBox>().CurrentValue)
     {
         Drawing.DrawText(Player.Position.WorldToScreen().X - 75, Player.Position.WorldToScreen().Y + 40, Color.White,
                          "FlashQ (HAP) can hit: " +
                          CastManager.GetOptimizedCircleLocation(
                              EntityManager.Heroes.Enemies.Where(e => e.IsValidTarget() && e.IsValid && e.Distance(Player) < 450)
                              .Select(champ => Prediction.Position.PredictUnitPosition(champ, _q.CastDelay))
                              .ToList(), _q.Range, _flash.SData.CastRange).ChampsHit);
     }
 }
Exemplo n.º 5
0
        public override void OnCreate()
        {
            base.OnCreate();

            RegisterActivityLifecycleCallbacks(this);
            CastManager.Initialize(this, NameSpace);
            _castManager = CastManager.GetCastManager();
        }
Exemplo n.º 6
0
        private static void CastSpellLogic(bool useQ = false, bool useW = false, bool useE = false,
                                           bool useR = false)
        {
            if (useQ)
            {
                var enemy = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

                if (enemy != null && enemy.IsValidTarget(Q.Range))
                {
                    Q.Cast();
                }
            }

            if (useW)
            {
                if (SpellMenu["wtc"].Cast <CheckBox>().CurrentValue&& Player.CountEnemiesInRange(700) >= 1)
                {
                    W.Cast();
                }
            }
            if (useE && E.IsReady() && TickManager.NoLag(3))
            {
                var enemy = TargetSelector.GetTarget(E.Range, DamageType.Mixed);

                if (enemy != null && enemy.IsValidTarget(E.Range))
                {
                    E.Cast(enemy);
                }
            }
            if (useR && R.IsReady() && TickManager.NoLag(4))
            {
                if (SpellMenu["rtc"].Cast <CheckBox>().CurrentValue)
                {
                    var target = TargetManager.Target(650, DamageType.Magical);
                    if (target == null || !target.IsValidTarget(R.Range) ||
                        !TickManager.NoLag(4) ||
                        !R.IsReady())
                    {
                        return;
                    }
                    {
                        var champs =
                            EntityManager.Heroes.Enemies.Where(e => e.Distance(target) < R.Radius)
                            .Select(champ => Prediction.Position.PredictUnitPosition(champ, R.CastDelay))
                            .ToList();
                        var location = CastManager.GetOptimizedCircleLocation(champs, R.Radius, 1025);
                        if (location.ChampsHit < SpellMenu["rslider"].Cast <Slider>().CurrentValue)
                        {
                            return;
                        }
                        {
                            R.Cast(location.Position.To3D());
                        }
                    }
                }
            }
        }
Exemplo n.º 7
0
 private void Start()
 {
     field        = ObjectsHolder.Instance.field;
     wizard       = ObjectsHolder.Instance.wizard;
     towers       = new TowerWizard [rawTowers.Length];
     attackTowers = new List <TowerWizard> ();
     ui           = ObjectsHolder.Instance.uIManager;
     ec           = ObjectsHolder.Instance.enemyController;
     castManager  = ObjectsHolder.Instance.castManager;
     SortTowers();
 }
Exemplo n.º 8
0
    private void Awake()
    {
        // Dont destroy this object when a new scene is loaded, unless...
        DontDestroyOnLoad(this);

        // There can be only ONE!
        if (_instance == null)
        {
            _instance = this;
        }
        else if (_instance != this)
        {
            Destroy(this.gameObject);
        }
    }
Exemplo n.º 9
0
 private static void FlashR()
 {
     if (SpellMenu["flashr"].Cast <KeyBind>().CurrentValue)
     {
         EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
         var target = TargetManager.Target(1025, DamageType.Magical);
         if (target == null || !target.IsValidTarget(1025) || !TickManager.NoLag(4) ||
             !R.IsReady() || _flash == null)
         {
             return;
         }
         var champs =
             EntityManager.Heroes.Enemies.Where(e => e.Distance(target) < R.Radius)
             .Select(champ => Prediction.Position.PredictUnitPosition(champ, R.CastDelay))
             .ToList();
         var location = CastManager.GetOptimizedCircleLocation(champs, R.Radius, 1025);
         if (location.Position.Distance(Player.Position) > 600)
         {
             Player.Spellbook.CastSpell(_flash.Slot, Player.Position.Extend(location.Position.To3D(), 450).To3D());
         }
         R.Cast(location.Position.To3D());
     }
     else if (SpellMenu["flashrhap"].Cast <KeyBind>().CurrentValue)
     {
         EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
         if (EntityManager.Heroes.Enemies.Count(e => e.Distance(Player) < 1025) <
             SpellMenu["framount"].Cast <Slider>().CurrentValue || !TickManager.NoLag(4) ||
             !R.IsReady() || _flash == null)
         {
             return;
         }
         var champs =
             EntityManager.Heroes.Enemies.Where(e => e.Distance(Player) < 1025)
             .Select(champ => Prediction.Position.PredictUnitPosition(champ, R.CastDelay))
             .ToList();
         var location = CastManager.GetOptimizedCircleLocation(champs, R.Radius, 1025);
         if (location.ChampsHit < SpellMenu["framount"].Cast <Slider>().CurrentValue)
         {
             return;
         }
         if (location.Position.Distance(Player.Position) > 600)
         {
             Player.Spellbook.CastSpell(_flash.Slot, Player.Position.Extend(location.Position.To3D(), 450).To3D());
         }
         R.Cast(location.Position.To3D());
     }
 }
Exemplo n.º 10
0
        private static void Combo()
        {
            if (SpellMenu["qtc"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && TickManager.NoLag(1))
            {
                var target = TargetManager.Target(Q, DamageType.Magical);
                if (target != null && target.IsValidTarget(Q.Range))
                {
                    Q.Cast(target);
                }
            }
            else if (SpellMenu["etc"].Cast <CheckBox>().CurrentValue&& E.IsReady() && TickManager.NoLag(3))
            {
                var target = TargetManager.Target(E, DamageType.Magical);
                if (target != null && target.IsValidTarget(E.Range))
                {
                    E.Cast();
                }
            }
            else if (SpellMenu["rtc"].Cast <CheckBox>().CurrentValue&& R.IsReady() && TickManager.NoLag(4))
            {
                foreach (
                    var target in
                    EntityManager.Heroes.Enemies.Where(
                        hero => hero.IsValidTarget(Q.Range) && !hero.IsDead && !hero.IsZombie))
                {
                    if (Q.IsReady() && Player.GetSpellDamage(target, SpellSlot.Q) >= target.Health ||
                        E.IsReady() && Player.GetSpellDamage(target, SpellSlot.E) >= target.Health)
                    {
                        return;
                    }
                    if (SpellMenu["rtc"].Cast <CheckBox>().CurrentValue)
                    {
                        var champs =
                            EntityManager.Heroes.Enemies.Where(e => e.Distance(Player) < 700)
                            .Select(champ => Prediction.Position.PredictUnitPosition(champ, R.CastDelay))
                            .ToList();
                        var location = CastManager.GetOptimizedCircleLocation(champs, R.Radius, 700);

                        if (location.ChampsHit < SpellMenu["ramount"].Cast <Slider>().CurrentValue)
                        {
                            return;
                        }
                        R.Cast(location.Position.To3D());
                    }
                }
            }
        }
Exemplo n.º 11
0
        public void UpdateCastState(Context c, OoyalaPlayer.State state)
        {
            var castDeviceName = CastManager.GetCastManager().DeviceName;

            if (state == OoyalaPlayer.State.Loading)
            {
                _stateTextView.Text = c.GetString(Resource.String.loading);
            }
            else if (state == OoyalaPlayer.State.Playing || state == OoyalaPlayer.State.Paused)
            {
                var statusString = $"{c.GetString(Resource.String.castingTo)} {castDeviceName}";
                _stateTextView.Text = statusString;
            }
            else
            {
                _stateTextView.Text = "";
            }
        }
Exemplo n.º 12
0
 private static void FlashQ()
 {
     if (SpellMenu["flashq"].Cast <KeyBind>().CurrentValue)
     {
         EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
         var target = TargetManager.Target((int)_flash.SData.CastRange, DamageType.Magical);
         if (target == null || !target.IsValidTarget((int)_flash.SData.CastRange) || !TickManager.NoLag(1) ||
             !_q.IsReady() || _flash == null)
         {
             return;
         }
         var champs =
             EntityManager.Heroes.Enemies.Where(e => e.Distance(target) < _q.Range)
             .Select(champ => Prediction.Position.PredictUnitPosition(champ, _q.CastDelay))
             .ToList();
         var location = CastManager.GetOptimizedCircleLocation(champs, _q.Range, _flash.SData.CastRange);
         Player.Spellbook.CastSpell(_flash.Slot,
                                    location.ChampsHit > 1 ? location.Position.To3DWorld() : target.Position);
         _q.Cast();
     }
     else if (SpellMenu["flashqhap"].Cast <KeyBind>().CurrentValue)
     {
         EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
         if (EntityManager.Heroes.Enemies.Count(e => e.Distance(Player) < _flash.SData.CastRange) <
             SpellMenu["fqamount"].Cast <Slider>().CurrentValue || !TickManager.NoLag(1) ||
             !_q.IsReady() || _flash == null)
         {
             return;
         }
         var champs =
             EntityManager.Heroes.Enemies.Where(e => e.Distance(Player) < _flash.SData.CastRange)
             .Select(champ => Prediction.Position.PredictUnitPosition(champ, _q.CastDelay))
             .ToList();
         var location = CastManager.GetOptimizedCircleLocation(champs, _q.Range, _flash.SData.CastRange);
         if (location.ChampsHit < SpellMenu["fqamount"].Cast <Slider>().CurrentValue)
         {
             return;
         }
         Player.Spellbook.CastSpell(_flash.Slot, location.Position.To3DWorld());
         _q.Cast();
     }
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here

            var preferences = GetSharedPreferences("lastChosenParams", FileCreationMode.Private);

            _embedCode = preferences.GetString("embedCode", "");
            _pcode     = preferences.GetString("pcode", "");
            _domain    = preferences.GetString("domain", "");

            SetContentView(Resource.Layout.player_activity);
            var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);

            SetSupportActionBar(toolbar);

            _castManager = CastManager.GetCastManager();
            InitOoyala();
            _castViewManager = new CastViewManager(this, _castManager);
        }
Exemplo n.º 14
0
        private static void AutoR()
        {
            if (EntityManager.Heroes.Enemies.Count(e => e.Distance(Player) < 1250) <
                SpellMenu["auamount"].Cast <Slider>().CurrentValue || !TickManager.NoLag(4) ||
                !R.IsReady())
            {
                return;
            }
            var champs =
                EntityManager.Heroes.Enemies.Where(e => e.Distance(Player) < R.Range)
                .Select(champ => Prediction.Position.PredictUnitPosition(champ, R.CastDelay))
                .ToList();
            var location = CastManager.GetOptimizedCircleLocation(champs, R.Radius, 1250);

            if (location.ChampsHit < SpellMenu["auamount"].Cast <Slider>().CurrentValue)
            {
                return;
            }
            R.CastDelay = 1900 + 1500 * (int)Player.Distance(location.Position) / 5300;
            R.Cast(location.Position.To3D());
        }
Exemplo n.º 15
0
 public static void AutoR()
 {
     if (SpellMenu["autor"].Cast <CheckBox>().CurrentValue)
     {
         if (EntityManager.Heroes.Enemies.Count(e => e.Distance(Player) < 700) <
             SpellMenu["aramount"].Cast <Slider>().CurrentValue || !TickManager.NoLag(4) ||
             !R.IsReady())
         {
             return;
         }
         var champs =
             EntityManager.Heroes.Enemies.Where(e => e.Distance(Player) < 700)
             .Select(champ => Prediction.Position.PredictUnitPosition(champ, R.CastDelay))
             .ToList();
         var location = CastManager.GetOptimizedCircleLocation(champs, R.Radius, 700);
         if (location.ChampsHit < SpellMenu["aramount"].Cast <Slider>().CurrentValue)
         {
             return;
         }
         R.Cast(location.Position.To3D());
     }
 }
Exemplo n.º 16
0
 /// <summary>
 ///     (Non-Blocking) Casts the ability's spell on the specified target. The cast will only be attempted if the conditions
 ///     list is completely satisfied first.
 /// </summary>
 /// <returns>Returns true on a successful cast.</returns>
 public virtual async Task <bool> CastOnTarget(WoWUnit target)
 {
     return(await CastManager.CastOnTarget(target, this, Conditions));
 }
Exemplo n.º 17
0
 public ShareScreenHub(CastManager castManager)
 {
     this._castManager = castManager;
 }
Exemplo n.º 18
0
 private void Awake()
 {
     castManager = FindObjectOfType <CastManager> ();
     objects     = FindObjectOfType <ObjectsHolder> ();
 }
Exemplo n.º 19
0
 void Awake()
 {
     Instance = this;
 }
Exemplo n.º 20
0
 public bool Satisfied()
 {
     return(!CastManager.SpellIsOnCooldown(_spell.Id) || _spell.CooldownTimeLeft < _maxCooldown);
 }
Exemplo n.º 21
0
 public override void OnCreate()
 {
     base.OnCreate();
     CastManager.Initialize(this);
 }
Exemplo n.º 22
0
 private static void Combo()
 {
     if (W.IsReady() && SpellMenu["wtc"].Cast <CheckBox>().CurrentValue)
     {
         var target = TargetManager.Target(W, DamageType.Magical);
         if (target != null && target.IsValidTarget(W.Range) &&
             Player.Mana > (ManaManager.GetMana(SpellSlot.W)) &&
             TickManager.NoLag(2))
         {
             W.Cast(W.GetPrediction(target).CastPosition);
         }
     }
     else if (SpellMenu["qtc"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && TickManager.NoLag(1))
     {
         var target = TargetManager.Target(Q, DamageType.Magical);
         if (target != null && target.IsValidTarget(Q.Range))
         {
             Q.Cast(target);
         }
     }
     else if (SpellMenu["rtc"].Cast <CheckBox>().CurrentValue&& R.IsReady() && TickManager.NoLag(4))
     {
         var enemy =
             EntityManager.Heroes.Enemies.Find(
                 e =>
                 e.IsValidTarget(R.Range) &&
                 Player.GetSpellDamage(e, SpellSlot.R) >= Prediction.Health.GetPrediction(e, R.CastDelay));
         var emergency =
             EntityManager.Heroes.Enemies.Find(
                 e =>
                 e.IsValidTarget(R.Range));
         if (enemy != null)
         {
             CastManager.Cast.Circle.Optimized(R, DamageType.Magical, (int)R.Range, 1, RChance, enemy);
         }
         else if (Player.HealthPercent <= 15)
         {
             if (emergency != null)
             {
                 CastManager.Cast.Circle.Optimized(R, DamageType.Magical, (int)R.Range, 1, RChance,
                                                   emergency);
             }
             else if (Player.HasBuff("pyromania_particle"))
             {
                 if (EntityManager.Heroes.Enemies.Count(e => e.Distance(Player) < R.Range + R.Radius) <
                     2 || !TickManager.NoLag(4) ||
                     !R.IsReady())
                 {
                     return;
                 }
                 var champs =
                     EntityManager.Heroes.Enemies.Where(e => e.Distance(Player) < R.Range + R.Radius)
                     .Select(champ => Prediction.Position.PredictUnitPosition(champ, R.CastDelay))
                     .ToList();
                 var location = CastManager.GetOptimizedCircleLocation(champs, R.Radius, R.Range + R.Radius);
                 if (location.ChampsHit < 2)
                 {
                     return;
                 }
                 R.Cast(location.Position.To3D());
             }
         }
     }
 }
Exemplo n.º 23
0
 private void Awake()
 {
     CellRenderer = GetComponent <SpriteRenderer> ();
     castManager  = FindObjectOfType <CastManager> ();
 }
Exemplo n.º 24
0
 public CastViewManager(Activity activity, CastManager manager)
 {
     _castView        = activity.LayoutInflater.Inflate(Resource.Layout.cast_video_view, null);
     manager.CastView = _castView;
     _stateTextView   = _castView.FindViewById <TextView>(Resource.Id.castStateTextView);
 }
Exemplo n.º 25
0
 public bool Satisfied()
 {
     return(!CastManager.SpellIsOnCooldown(Spell.Id));
 }
Exemplo n.º 26
0
 /// <summary>
 ///     (Non-Blocking) Casts the ability's spell on the specified target. The cast will only be attempted if the conditions
 ///     list is completely satisfied first.
 /// </summary>
 /// <returns>Returns true on a successful cast.</returns>
 public override async Task <bool> CastOnTarget(WoWUnit target)
 {
     return
         (await CastManager.CastOnTarget(target, this, PandemicConditions) ||
          await base.CastOnTarget(target));
 }
Exemplo n.º 27
0
 private static void StartHeartBeat()
 {
     Bootstrap.Init(null);
     Hacks.RenderWatermark = false;
     Chat.Print(
         "Starting <font color = \"#740000\">Volatile AIO</font> <font color = \"#B87F7F\">Heart.cs</font>:");
     if (!Directory.Exists(ChampionProfiles.VolatileDir))
     {
         Directory.CreateDirectory(ChampionProfiles.VolatileDir);
     }
     if (!File.Exists(Path.Combine(
                          ChampionProfiles.VolatileDir, "Volatile.json")))
     {
         SaveSettings(false);
     }
     else if (LoadSettings())
     {
         UsingVorb = true;
         Volkswagen.AddToMenu();
     }
     else
     {
         UsingVorb = false;
     }
     VolatileMenu = MainMenu.AddMenu("V." + Player.ChampionName, "volatilemenu",
                                     "Volatile " + Player.ChampionName);
     ExtensionLoader = new ExtensionLoader();
     //InfoBoard
     VolatileMenu.AddGroupLabel("Heart.cs");
     VolatileMenu.AddLabel("\"I.. I'm alive.. I can feel my heart beating.\"");
     VolatileMenu.AddSeparator();
     VolatileMenu.AddLabel("Welcome to Volatile AIO." + Environment.NewLine +
                           "Volatile is an intelligent and aware AIO." + Environment.NewLine +
                           "It strives to include the most thorough logic" + Environment.NewLine +
                           "and the most pleasant game experience" + Environment.NewLine);
     VolatileMenu.AddSeparator();
     VolatileMenu.AddLabel("I hope you'll like it.");
     VolatileMenu.AddSeparator();
     VolatileMenu.AddGroupLabel("Supported Champions:");
     foreach (var champion in ExtensionLoader.Champions)
     {
         var label = champion.Name + " by " + champion.Developer;
         for (var i = champion.Name.Length; i < 20; i++)
         {
             label += " ";
         }
         label += "Status: " + champion.State;
         VolatileMenu.AddLabel(label);
     }
     VolatileMenu.AddSeparator();
     VolatileMenu.AddLabel("AIO Options:");
     VolatileMenu.Add("debug", new CheckBox("Debug", false));
     VolatileMenu.Add("golf", new CheckBox("Use Volatile Orbwalker", false)).OnValueChange +=
         Secret_OnValueChange;
     VolatileMenu.AddLabel(
         "*Orbwalker requires reload. Press f5 to reload, and please turn off EB Orbwalker Drawings");
     OrbHandler();
     if (!ExtensionLoader.IncludesChampion(Player.ChampionName) && Player.ChampionName.ToLower() != "leesin")
     {
         return;
     }
     CastManager.MenuInit();
     ManaManager = new ManaManager();
     AutoLeveler = new AutoLeveler();
     DrawManager = new DrawManager();
     // ReSharper disable once UseNullPropagation
     if (OnDraw != null)
     {
         OnDraw.Invoke();
     }
     Drawinit = true;
     HackMenu = VolatileMenu.AddSubMenu("Hacks", "hacks", "Volatile Hacks");
     SkinManager.Initialize();
     //RecallTracker = new RecallTracker();
     ChampionProfiles = new ChampionProfiles();
     Profileinit      = true;
     Activator        = new Activator();
     if (!AutoLeveler.PrioritiesAreSet() &&
         AutoLeveler.AutoLevelMenu["autolevel"].Cast <CheckBox>().CurrentValue)
     {
         Chat.Print("Auto-Leveler: Priorities not Set!");
     }
     if (!ManaManager.PrioritiesAreSet() && ManaManager.MmMenu["manamanager"].Cast <CheckBox>().CurrentValue)
     {
         Chat.Print("Mana Manager: Priorities not Set!");
     }
 }
Exemplo n.º 28
0
 public void InitCast()
 {
     castManager            = new CastManager(WizardState);
     wizardNode.destination = wizardNode.Position;
 }