Esempio n. 1
0
        protected override void Setup(ApplicationInfo info)
        {
            base.Setup(info);

            player = new Player();

            MyWindow myWindow = new MyWindow(new WindowTemplate(),player);

            SetWindow(myWindow);
        }
Esempio n. 2
0
 /// 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;
 }
Esempio n. 3
0
 /// 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;
 }