Пример #1
0
 // Constructor
 public Sun(Game game, Griding.Griding griding, Vector2 bankDirection)
     : base(game)
 {
     this.bankDirection = bankDirection;
     this.griding = griding;
     this.Initialize();
 }
Пример #2
0
        public PlantSun(Game game, Griding.Griding griding, Vector2 bankDirection, Vector2 position)
            : base(game, griding, bankDirection)
        {
            this.position = position;

            animation.PositionX = position.X + 50f;
            animation.PositionY = position.Y;

            SetDestToFall();
            SetDestToJump();
        }
Пример #3
0
 protected virtual void CollisionDetectOnCell(Griding.Cell cell)
 {
     foreach (Griding.IGridable grc in cell.Components)
     {
         Zombies.Zombie zombie = grc as Zombies.Zombie;
         if (zombie != null)
         {
             this.Collided(zombie);
         }
     }
 }
Пример #4
0
        // Constructor
        public PlantManager(Game game, Griding.Griding griding)
            : base(game)
        {
            this.bulletManager = new Bullets.BulletManager(game);
            this.griding = griding;
            this.sunManager = new SunManager(game);
            this.sunManager.SetGriding = griding;

            bulletManager.Griding = griding;

            this.Initialize();
        }
Пример #5
0
 public FallSun(Game game, Griding.Griding griding, Vector2 bankDirection)
     : base(game, griding, bankDirection)
 {
     this.sunValue = 35;
 }
Пример #6
0
 public ZombiesManager(Griding.Griding grid)
     : base(grid.Game)
 {
     this.Zombies = new List<Zombie>();
     this.Grid = grid;
 }