Beispiel #1
0
 public AggregateCatchConditions(int objectID, CatchConditions conditions)
 {
     ObjectID  = objectID;
     Seasons   = new HashSet <string>();
     Locations = new HashSet <string>();
     Add(conditions);
 }
Beispiel #2
0
 public CaughtFish(int objectID, int fishQuality, int timeOfDay, int size, SDate dateCaught, string location, bool raining)
 {
     ObjectID    = objectID;
     FishQuality = fishQuality;
     TimeOfDay   = timeOfDay;
     Size        = size;
     DateCaught  = dateCaught;
     Conditions  = new CatchConditions(DateCaught.Season, raining, WasDayTime(TimeOfDay, DateCaught.Season), location);
 }
Beispiel #3
0
 public void Add(CatchConditions c)
 {
     Rain   = Rain || c.Raining;
     NoRain = NoRain || !c.Raining;
     Day    = Day || c.Day;
     Night  = Night || !c.Day;
     Seasons.Add(c.Season);
     Locations.Add(c.Location);
 }