Exemplo n.º 1
0
        public void Attach(float x, float y, SndObserver pSn)
        {
            PositionHoder pPositionHoder = null;

            pPositionHoder = new PositionHoder(x, y, pSn);
            Debug.Assert(pPositionHoder != null);

            SLink.AddToFront(ref this.poHead, pPositionHoder);
            this.pCurr = pPositionHoder;
        }
Exemplo n.º 2
0
        public void Attach(Image.Name imageName)
        {
            Image pImage = ImageMan.Find(imageName);

            Debug.Assert(pImage != null);
            ImageHolder pImageHolder = new ImageHolder(pImage);

            Debug.Assert(pImageHolder != null);

            SLink.AddToFront(ref this.poHeadImage, pImageHolder);
            this.pCurrImage = pImageHolder;
        }
Exemplo n.º 3
0
        public void attach(String pSound)
        {
            // create a new ImageHolder to hold the image
            SoundHolder pSoundHolder = new SoundHolder(pSound);

            Debug.Assert(pSoundHolder != null);

            // add to front
            SLink.AddToFront(ref this.poFirstSound, pSoundHolder);

            // set the first one to this image
            this.pCurrSound = pSoundHolder;
        }
Exemplo n.º 4
0
        public void Attach(Sound.Name soundName)
        {
            // Create a new holder
            SoundNameHolder pSoundHolder = new SoundNameHolder(soundName);

            Debug.Assert(pSoundHolder != null);

            // Attach it to the TimedSoundEffect ( Push to front )
            SLink.AddToFront(ref this.poFirstSound, pSoundHolder);

            // Set the first one to this Sound
            this.pCurrentSound = pSoundHolder;
        }
        public void Attach(Sound.Name soundName)
        {
            Sound pSound = SoundMan.Find(soundName);

            Debug.Assert(pSound != null);

            SoundHolder pSoundHolder = new SoundHolder(pSound);

            Debug.Assert(pSoundHolder != null);

            SLink.AddToFront(ref this.poFirstSound, pSoundHolder);

            this.pCurrSound = pSoundHolder;
        }
Exemplo n.º 6
0
        public void Attach(Motion motion)
        {
            Debug.Assert(motion != null);

            // Create a new holder
            MotionHolder pMotionHolder = new MotionHolder(motion);

            Debug.Assert(pMotionHolder != null);

            // Attach it to the Motion Composite ( Push to front )
            SLink.AddToFront(ref this.poFirstMotion, pMotionHolder);

            // Set the first one to this motion
            this.pCurrentMotion = pMotionHolder;
        }
Exemplo n.º 7
0
        public void Attach(Image.Name imageName)
        {
            Image pImage = ImageMan.Find(imageName);

            Debug.Assert(pImage != null);

            ImageHolder pImageHolder = new ImageHolder(pImage);

            Debug.Assert(pImageHolder != null);

            // add Image to the list
            SLink.AddToFront(ref this.poFirstImage, pImageHolder);

            //then set the current image to the image just added
            //its always the first image
            this.pCurrentImage = pImageHolder;
        }
Exemplo n.º 8
0
        public virtual void Attach(Image.Name imageName)
        {
            // Get the image
            Image pImage = ImageManager.Find(imageName);

            Debug.Assert(pImage != null);

            // Create a new holder
            ImageHolder pImageHolder = new ImageHolder(pImage);

            Debug.Assert(pImageHolder != null);

            // Attach it to the Animation Sprite ( Push to front )
            SLink.AddToFront(ref this.poFirstImage, pImageHolder);

            // Set the first one to this image
            this.pCurrentImage = pImageHolder;
        }
Exemplo n.º 9
0
        public void Attach(Image.Name imageName)
        {
            // Get the image we are looking for from ImageManager
            Image pImage = ImageManager.Find(imageName);

            Debug.Assert(pImage != null);

            // Create a new holder
            ImageHolder pImageHolder = new ImageHolder(pImage);

            Debug.Assert(pImageHolder != null);

            // Attach it to the Animation Sprite to the front of the image holder list.
            SLink.AddToFront(ref this.poFirstImage, pImageHolder);

            // Set the first one to this image
            this.pCurrImage = pImageHolder;
        }
Exemplo n.º 10
0
        //---------------------------------------------------------------------------------------------------------
        // Methods
        //---------------------------------------------------------------------------------------------------------
        public void attach(Image.Name name)
        {
            // get the image
            Image pImage = ImageMan.Find(name);

            Debug.Assert(pImage != null);

            // create a new ImageHolder to hold the image
            ImageHolder pImageHolder = new ImageHolder(pImage);

            Debug.Assert(pImageHolder != null);

            // add to front
            SLink.AddToFront(ref this.poFirstImage, pImageHolder);

            // set the first one to this image
            this.pCurrImage = pImageHolder;
        }
Exemplo n.º 11
0
        public void Attach(Image.Name imageName)
        {
            // Get the image
            Image pImage = ImageManager.Find(imageName);

            Debug.Assert(pImage != null);

            // Create a new reference container
            ImageRef pImageRef = new ImageRef(pImage);

            Debug.Assert(pImageRef != null);

            // Attach to the Sprite Animation
            SLink.AddToFront(ref this.pFirstImage, pImageRef);

            // Set as current image
            this.pCurrImage = pImageRef;
        }