Example #1
0
        public virtual void Update(GameTime gameTime)
        {
            switch (_aiType)
            {
            case AiTypes.Brute:
                UpdateBruteAi();
                break;

            case AiTypes.Smart:
                UpdateSmartAi();
                break;

            case AiTypes.Rush:
                UpdateRushAi();
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
            MovementAi(gameTime);
            _animationSet.UpdateAnimation(ref CollidableObject.SourceRectangle, ref CollidableObject.origin, gameTime);
        }
Example #2
0
 public virtual void Update(GameTime gameTime)
 {
     GetInput(gameTime);
     _animationSet.UpdateAnimation(ref CollidableObject.SourceRectangle, ref CollidableObject.origin, gameTime);
 }