Exemple #1
0
 // public static int Points { get; set; }
 public Player(string Name, Tank.Position Position)
 {
     this.Name = Name;
     RefreshTanks(Position);
     //Points = 0;
     IsPlayerBurned = false;
     Points         = 0;
 }
Exemple #2
0
 public void RefreshTanks(Tank.Position Position)
 {
     if (Position == Tank.Position.LeftToRight)
     {
         Tank = new Tank(Scene.LEFT + 20, Scene.TOP + 20, 0, Position);
     }
     else if (Position == Tank.Position.RightToLeft)
     {
         Tank = new Tank(Scene.RIGHT - 50, Scene.BOTTOM - 50, 180, Position);
     }
 }