public DbFleet(DbPlayer owner, List <DbShip> ships, string name)
 {
     Owner    = owner;
     Ships    = ships;
     Name     = name;
     IsActive = true;
 }
 public DbShip(DbPlayer owner, int shipExp, DbShipTemplate shipBaseStats)
 {
     Owner         = owner;
     ShipExp       = shipExp;
     ShipBaseStats = shipBaseStats;
     Fleets        = new List <DbFleet>();
     IsActive      = true;
 }
 public DbGameHistory(DbPlayer winner, DbPlayer loser, DbFleet winnerFleet, DbFleet loserFleet, bool wasDraw, DateTime gameDate)
 {
     Winner      = winner;
     Loser       = loser;
     WinnerFleet = winnerFleet;
     LoserFleet  = loserFleet;
     WasDraw     = wasDraw;
     GameDate    = gameDate;
 }
 public DbGameHistory(int id, DbPlayer winner, DbPlayer loser, DbFleet winnerFleet, DbFleet loserFleet, bool wasDraw, DateTime gameDate)
     : this(winner, loser, winnerFleet, loserFleet, wasDraw, gameDate)
 {
     Id = id;
 }
 public DbFleet(int id, DbPlayer owner, List <DbShip> ships, string name) : this(owner, ships, name)
 {
     Id = id;
 }
 public DbShip(int id, DbPlayer owner, int shipExp, DbShipTemplate shipBaseStats)
     : this(owner, shipExp, shipBaseStats)
 {
     Id = id;
 }
 /// <summary>
 /// creates new <see cref="DbShip"/> of this <see cref="DbShipTemplate"/>. Remember to get this <see cref="DbShipTemplate"/> and owning <see cref="DbPlayer"/> for DB!!
 /// </summary>
 /// <param name="owner"></param>
 /// <returns></returns>
 public DbShip GenerateNewShipOfThisTemplate(DbPlayer owner)
 {
     return(new DbShip(owner, 0, this));
 }