CrisisAtSwissStation.LaserObject.LaserObject C# (CSharp) Method

LaserObject() public method

public LaserObject ( Box2DX myWorld, DudeObject myDude, string sectionTexturename, int amnSections ) : System
myWorld Box2DX
myDude DudeObject
sectionTexturename string
amnSections int
return System
        public LaserObject(Box2DX.Dynamics.World myWorld, DudeObject myDude, string sectionTexturename, int amnSections)
        {
            world = myWorld;
            dude = myDude;
            sectionTex = GameEngine.TextureList[sectionTexturename];
            sectionTextureName = sectionTexturename;
            numSections = amnSections;
            sections = new Vector2[numSections];
            currentSection = 0;
            sectionTimer = 0;
            lambda = 0;
            amDrawing = false;
            amErasing = false;
            interference = new Box2DX.Collision.Shape[3];
            //interference.Initialize();

            SCALE = CASSWorld.SCALE;
            primitiveBatch = new PrimitiveBatch(GameEngine.Instance.GraphicsDevice);

            //animation stuff
            myGameTime = 0;
            animateTimer = 0;
            animateInterval = 20;
            xFrame = 0;
            yFrame = 0;
            numFrames = 8;
            spriteWidth = 50;
            spriteHeight = 512;
            sourceRect = new Rectangle(xFrame * spriteWidth, yFrame * spriteHeight, spriteWidth, spriteHeight);
            origin = new Vector2(sourceRect.Width / 2, sourceRect.Height / 2);
        }