//private GamePage game_page = new GamePage(); public GameNotificationListener(GamePage page) { _game_page = page; }
public void Initialize(Texture2D texture, Texture2D projectileTexture, double range, TimeSpan frequenceInSeconds, Vector2 position, GamePage gamePage) { this.Texture = texture; this.ProjectileTexture = projectileTexture; this.Range = range; this.FrequencyInSeconds = frequenceInSeconds; this.Position = position; this.LastFiredTime = new TimeSpan(); this.Width = this.Texture.Width; this.Height = this.Texture.Height; this.GamePage = gamePage; }