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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
//--------------------------------------------------------------------------------------------------------- // 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; }
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; }