// Constructor public Sun(Game game, Griding.Griding griding, Vector2 bankDirection) : base(game) { this.bankDirection = bankDirection; this.griding = griding; this.Initialize(); }
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(); }
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); } } }
// 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(); }
public FallSun(Game game, Griding.Griding griding, Vector2 bankDirection) : base(game, griding, bankDirection) { this.sunValue = 35; }
public ZombiesManager(Griding.Griding grid) : base(grid.Game) { this.Zombies = new List<Zombie>(); this.Grid = grid; }