Category5.VictimUFO.VictimUFO C# (CSharp) Method

VictimUFO() public method

public VictimUFO ( MegaTile ParentMegaTile, Animation GroundAnimation, Animation StumpAnimation, Animation ExplodeAnimation, Animation TornadoAnimation, string SoundFileName, Level ParentLevel ) : System
ParentMegaTile MegaTile
GroundAnimation Animation
StumpAnimation Animation
ExplodeAnimation Animation
TornadoAnimation Animation
SoundFileName string
ParentLevel Level
return System
        public VictimUFO(MegaTile ParentMegaTile, Animation GroundAnimation, Animation StumpAnimation, Animation ExplodeAnimation, Animation TornadoAnimation, string SoundFileName, Level ParentLevel )
        {
            this.megatile = ParentMegaTile;
            this.GroundAnimation = GroundAnimation;
            this.StumpAnimation = StumpAnimation;
            this.ExplodeAnimation = ExplodeAnimation;
            this.TornadoAnimation = TornadoAnimation;
            this.level = ParentLevel;

            removeFromMegaTileOnDeath = true;

            this.soundHit = SoundFileName;
            state = State.Ground;

            if (GroundAnimation.FrameWidth > GroundAnimation.FrameHeight)
            {
                squareDimensions = GroundAnimation.FrameWidth;
            }
            else
            {
                squareDimensions = GroundAnimation.FrameHeight;
            }

            squareDimensions *= 16;

            PreLoadSounds();

            PlaceInWorld();
        }