Beispiel #1
0
        /// <summary>
        /// Adds a game component that will wander arounda aimlessly until it bumps into something.  Then it turns around and wanders some more.
        /// </summary>
        /// <param name="imageName">The image to use for the wandering enemy.  This should be a an XML Sprite sheet</param>
        /// <returns>An animated rotating enemy component.</returns>
        public RotatingWanderingComponent AddRotatingWanderingComponent(String imageName)
        {
            RotatingWanderingComponent rotatingWanderingComponent = new RotatingWanderingComponent(this, imageName);

            AddComponent(rotatingWanderingComponent);
            return(rotatingWanderingComponent);
        }
Beispiel #2
0
 /// <summary>
 /// Adds a game component that will wander arounda aimlessly until it bumps into something.  Then it turns around and wanders some more.
 /// </summary>
 /// <param name="imageName">The image to use for the wandering enemy.  This should be a an XML Sprite sheet</param>
 /// <returns>An animated rotating enemy component.</returns>
 public RotatingWanderingComponent AddRotatingWanderingComponent(String imageName)
 {
     RotatingWanderingComponent rotatingWanderingComponent = new RotatingWanderingComponent(this, imageName);
     AddComponent(rotatingWanderingComponent);
     return rotatingWanderingComponent;
 }