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

VictimCar() 공개 메소드

public VictimCar ( 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 VictimCar(   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;

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

            state = State.Ground;

            PreLoadSounds();
        }