예제 #1
0
 public Human(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     this.name   = name;
     this.tank   = tank;
     this.colour = colour;
 }
 public HumanOpponent(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">Name of the player</param>
 /// <param name="tank">Chassis the player uses</param>
 /// <param name="colour">Colour the player uses</param>
 public GenericPlayer(string name, Chassis tank, Color colour)
 {
     this.name   = name;
     this.tank   = tank;
     this.colour = colour;
 }
예제 #4
0
 public TankController(string name, Chassis tank, Color colour)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 /// <summary>
 /// Not used by human player
 /// </summary>
 public PlayerController(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
 }
예제 #6
0
 public PlayerController(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     // PlayerController constructor is handled in TankController
 }
예제 #7
0
 /// <summary>
 ///  exists to pass its parameters to the base constructor
 /// </summary>
 /// <param name="name">Name to be displayed</param>
 /// <param name="tank">Computers tank</param>
 /// <param name="colour">Tanks colour</param>
 public ComputerPlayer(string name, Chassis tank, Color colour) : base(name, tank, colour)
 {
     this.name   = name;
     this.tank   = tank;
     this.colour = colour;
 }