예제 #1
0
        void ShowShoot(int X, int Y, Person p)
        {
            ObjDraw.IsPersonInList(p.ID, true);
            int    AnimAddr, BulX = p.X + 48, BulY = p.Y + 48;
            double Curner = ToolsClass.CountCurner(X, Y, p.X, p.Y, out AnimAddr);

            ObjDraw.AddToObjectTicksList(new Person()
            {
                X = p.X, Y = p.Y, XSpeed = 0, YSpeed = 0, ID = p.ID
            }, AnimationAddr[AnimAddr], 10, ref Anims, BattleField.Image);
            OutNetConnect.SendPerson(new Person()
            {
                ID = p.ID, X = p.X, Y = p.Y, XSpeed = 0, YSpeed = 0
            }, AnimationAddr[AnimAddr], 10, false, (int)(Curner * 180 / Math.PI));
            AddBullet(Curner, BulX, BulY, p);
        }