コード例 #1
0
ファイル: Building.cs プロジェクト: smil3cz/vetulus-tribes
 public Building(BuildingType type, Kingdom kingdom)
 {
     this.Level = 1;
     Type       = type;
     Kingdom    = kingdom;
     HP         = Level * 100;
     StartedAt  = DateTime.UtcNow;
     FinishedAt = DateTime.UtcNow;
 }
コード例 #2
0
ファイル: Ship.cs プロジェクト: smil3cz/vetulus-tribes
 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;
     }
 }