public Jerry(Game game, JerryAni jerryani)
     : base(game)
 {
     this.jerryani   = jerryani;//instance of Jerry Animation class
     this.controller = new InputController(game);
     observers       = new List <IObserver>();
 }
        public Game1()
            : base()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";



            sb = new SteeringBehaviors(this);
            this.Components.Add(sb);

            tomani = new TomAni(this);
            this.Components.Add(tomani);

            jerryani = new JerryAni(this);
            this.Components.Add(jerryani);



            cheese = new Cheese(this);
            this.Components.Add(cheese);

            score = new ScoreKeeper(this, cheese);
            this.Components.Add(score);

            hm = new HolesManager(this);
            this.Components.Add(hm);

            jerry = new Jerry(this, jerryani);
            this.Components.Add(jerry);

            tom = new Tom(this, tomani, jerry, sb);
            this.Components.Add(tom);

            collision = new Collision(this, tom, jerry, sb, cheese, hm, score);
            this.Components.Add(collision);

            jerryai = new JerryAI(this, sb, cheese, hm, jerry, collision, tom);
            this.Components.Add(jerryai);
        }