Category5.VictimSkyscraper.VictimSkyscraper C# (CSharp) Метод

VictimSkyscraper() публичный Метод

public VictimSkyscraper ( MegaTile ParentMegaTile, Animation GroundAnimation, Animation StumpAnimation, Animation ExplodeAnimation, Animation TornadoAnimation, string SoundFileName, Vector2 Position ) : System
ParentMegaTile MegaTile
GroundAnimation Animation
StumpAnimation Animation
ExplodeAnimation Animation
TornadoAnimation Animation
SoundFileName string
Position Vector2
Результат System
        public VictimSkyscraper(MegaTile ParentMegaTile,
                            Animation GroundAnimation,
                            Animation StumpAnimation,
                            Animation ExplodeAnimation,
                            Animation TornadoAnimation,
                            string SoundFileName,
                            Vector2 Position)
        {
            this.megatile = ParentMegaTile;
            this.GroundAnimation = GroundAnimation;
            this.StumpAnimation = StumpAnimation;
            this.ExplodeAnimation = ExplodeAnimation;
            this.TornadoAnimation = TornadoAnimation;

            this.soundHit = SoundFileName;

            removeFromMegaTileOnDeath = false;

            bounds = new Rectangle2D(Position.X, Position.Y, GroundAnimation.FrameWidth, GroundAnimation.FrameHeight);

            state = State.Ground;

            PreLoadSounds();
        }