Exemplo n.º 1
0
 // will be initialized right before the first use of a class
 static PrimaryPlayer()
 {
     _instance = new PrimaryPlayer()
     {
         Name   = "Raptor",
         Level  = 1,
         Armor  = 25,
         Health = 200
     };
 }
Exemplo n.º 2
0
 public GameBoard()
 {
     _player        = PrimaryPlayer.Instance;
     _player.Weapon = new Sword(10, 4);
 }