示例#1
0
 // the husk always starts out in the main recovery center (Sector 27)
 public Husk(Locator locator)
 {
     ClaimedAt = DateTime.UtcNow;
     // TODO: Handle default backpack creation
     Attributes = new HuskAttributes {
         MaxSight = 15, MaxReach = 2, MaxHealth = 10, MaxSpeed = 10, MaxExposure = 5
     };
     Backpack = new Backpack(4);
     Location = locator;
     Status   = new HuskStatus(Attributes);
 }
示例#2
0
 internal Husk(DateTime claimedAt,
               HuskAttributes attributes,
               Backpack backpack,
               HuskStatus status,
               Locator location,
               Destination destination)
 {
     ClaimedAt   = claimedAt;
     Attributes  = attributes;
     Backpack    = backpack;
     Status      = status;
     Location    = location;
     Destination = destination;
 }