public CannonView(Game game, Color color, SpriteBatch spriteBatch, Cannon cannon) : base(game) { this.color = color; this.spriteBatch = spriteBatch; this.cannon = cannon; }
public Tower(Game game, Vector2 position, List<IGameObject> targets, CannonBallManager cannonBallManager) : base(game, position, cannonBallManager, 40, 100, 0) { this.targets = targets; minTargetFocusTimer = new Timer(10f); range = 300; Cannon = new Cannon(game, this, cannonBallManager, new Vector2(0, -35), 0.0f); base.Body.IsStatic = true; }