public HeroTracker(Obj_AI_Hero hero, Bitmap bmp)
        {
            this.hero = hero;
            teleportInfo = TeleportTracker.teleportInfos[hero.NetworkId];

            InitArrowImage();
            InitIconImage(bmp);
            InitCircleImage();

            lastLocation = hero.Position;

            Game.OnUpdate += Game_OnTick;
            Obj_AI_Base.OnLeaveVisiblityClient += Hero_OnLeaveVisibility;
            MissileClient.OnCreate += OnCreate_MissileClient;
            //Obj_AI_Base.OnProcessSpellCast += Hero_OnProcessSpell;
            //Drawing.OnDraw += Game_OnDraw;
        }
Exemple #2
0
        public HeroTracker(AIHeroClient hero, Bitmap bmp)
        {
            this.hero    = hero;
            teleportInfo = TeleportTracker.teleportInfos[hero.NetworkId];

            InitArrowImage();
            InitIconImage(bmp);
            InitCircleImage();

            lastLocation = hero.Position;

            Game.OnUpdate          += Game_OnTick;
            Obj_AI_Base.OnDelete   += Hero_OnLeaveVisibility;
            MissileClient.OnCreate += OnCreate_MissileClient;
            //Obj_AI_Base.OnProcessSpellCast += Hero_OnProcessSpell;
            //Drawing.OnDraw += Game_OnDraw;
        }