protected override void Setup(ApplicationInfo info) { base.Setup(info); player = new Player(); MyWindow myWindow = new MyWindow(new WindowTemplate(),player); SetWindow(myWindow); }
/// Again we force that a Player object be passed to our constructor, and we save it in /// a field for later use. public MapView(PanelTemplate template,Player player) : base(template) { this.player = player; }
/// The constructor has been modified so that it must be passed a Player object, which /// we will store in a field for later use. public MyWindow(WindowTemplate template,Player player) : base(template) { this.player = player; }