Exemple #1
0
 public Building(BuildingType type, Kingdom kingdom)
 {
     this.Level = 1;
     Type       = type;
     Kingdom    = kingdom;
     HP         = Level * 100;
     StartedAt  = DateTime.UtcNow;
     FinishedAt = DateTime.UtcNow;
 }
Exemple #2
0
 public Ship(ShipType type, Kingdom kingdom)
 {
     Level   = 1;
     Type    = type;
     Kingdom = kingdom;
     if (type == ShipType.Cruiser)
     {
         Hp      = 25;
         Attack  = 2;
         Defence = 2;
     }
     else
     {
         Hp      = 10;
         Attack  = 1;
         Defence = 1;
     }
 }