Esempio n. 1
0
        public static Fly GetFullCopy(Fly source)
        {
            Fly destination = new Fly()
            {
                coordinateX    = BL_Random.GetCoordinateX(),
                coordinateY    = 1,
                oldCoordinateX = source.oldCoordinateX,
                oldCoordinateY = source.oldCoordinateY,
                active         = source.active,
                counter        = source.counter,
                speed          = BL_Random.GetFlySpeed(),
                view           = (string[])source.view.Clone()
            };

            return(destination);
        }
Esempio n. 2
0
        public static Fly CreateFly()
        {
            Fly enemy = new Fly()
            {
                coordinateX    = BL_Random.GetCoordinateX(),
                coordinateY    = 1,
                oldCoordinateX = 58 - 1,
                oldCoordinateY = 2 - 1,
                view           = UI.fly,
                active         = true,
                speed          = BL_Random.GetFlySpeed(),
                counter        = 0,
                wide           = 6
            };

            return(enemy);
        }