Exemplo n.º 1
0
 public HuskStatus(HuskAttributes attributes)
 {
     Attributes = new Dictionary <string, int>
     {
         { HuskAttributes.Health, attributes.MaxHealth },
         { HuskAttributes.Sight, attributes.MaxSight },
         { HuskAttributes.Exposure, attributes.MaxExposure },
         { HuskAttributes.Speed, attributes.MaxSpeed },
         { HuskAttributes.Reach, attributes.MaxReach }
     };
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
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;
 }