Category5.VictimUFO.VictimUFO C# (CSharp) 메소드

VictimUFO() 공개 메소드

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
리턴 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();
        }