Пример #1
0
        public void RunFireBall(int x, int y, FireBallType T, FireBallDir D)
        {
            Type      = T;
            Direction = D;
            if (Type == FireBallType.FT_Mario)
            {
                if (D == FireBallDir.FB_Right)
                {
                    Dirx = 1;
                }
                else
                {
                    Dirx = -1;
                }
            }
            if (Type == FireBallType.FT_Piranah)
            {
            }

            SetFireProperties();
            newx = x;
            newy = y;

            StartFireBall();
        }
Пример #2
0
        public void RunFireBall(int x, int y, FireBallType T, FireBallDir D)
        {
            Type = T;
            Direction = D;
            if (Type == FireBallType.FT_Mario)
            {
                if (D == FireBallDir.FB_Right)
                    Dirx = 1;
                else
                    Dirx = -1;
            }
            if (Type == FireBallType.FT_Piranah)
            {

            }

            SetFireProperties();
            newx = x;
            newy = y;

            StartFireBall();
        }