Category5.VictimCar.VictimCar C# (CSharp) Méthode

VictimCar() public méthode

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
Résultat 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();
        }