public Questor() { _lastPulse = DateTime.MinValue; _random = new Random(); _salvage = new Salvage(); _defense = new Defense(); _combat = new Combat(); _traveler = new Traveler(); _unloadLoot = new UnloadLoot(); _agentInteraction = new AgentInteraction(); _arm = new Arm(); _missionController = new MissionController(); _drones = new Drones(); _panic = new Panic(); _storyline = new Storyline(); Settings.Instance.SettingsLoaded += SettingsLoaded; // State fixed on ExecuteMission State = QuestorState.Idle; _directEve = new DirectEve(); Cache.Instance.DirectEve = _directEve; _directEve.OnFrame += OnFrame; }
public Storyline() { _combat = new Combat(); _traveler = new Traveler(); _agentInteraction = new AgentInteraction(); _agentBlacklist = new List<long>(); _storylines = new Dictionary<string, IStoryline>(); //_storylines.Add("__", new GenericCombatStoryline()); //_storylines.Add("Materials For War Preparation", new MaterialsForWarPreparation()); _storylines.Add("Shipyard Theft", new GenericCombatStoryline()); _storylines.Add("Evolution", new GenericCombatStoryline()); _storylines.Add("Record Cleaning", new GenericCombatStoryline()); _storylines.Add("Covering Your Tracks", new GenericCombatStoryline()); _storylines.Add("Crowd Control", new GenericCombatStoryline()); _storylines.Add("A Force to Be Reckoned With", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Ambush In The Dark (1 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - The Kidnapping (3 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Incriminating Evidence (5 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - The Secret Meeting (7 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Defend the Civilian Convoy (8 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Retrieve the Prisoners (9 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - The Final Battle (10 of 10)", new GenericCombatStoryline()); _storylines.Add("Whispers in the Dark - First Contact (1 of 4)", new GenericCombatStoryline()); _storylines.Add("Whispers in the Dark - Lay and Pray (2 of 4)", new GenericCombatStoryline()); _storylines.Add("Whispers in the Dark - The Outpost (4 of 4)", new GenericCombatStoryline()); _storylines.Add("Transaction Data Delivery", new TransactionDataDelivery()); _storylines.Add("Innocents in the Crossfire", new TransactionDataDelivery()); }
public PagedList<Traveler> GetListOfTravelersWithin(int kmDistance, int index, int count, Traveler traveler) { if (traveler.Latitude > 0 && traveler.Longtitude > 0) return _locationDeterminator.FindNearByTravelers(kmDistance, traveler.Latitude, traveler.Longtitude, index, count, traveler.TravelerID); else throw new InvalidTravelerLocationException(); }
public void AddRecipient(Traveler recipient) { if (!HasRecipients()) { Recipients = new List<TravelerMessage>(); } Recipients.Add(TravelerMessageFactory.CreateTravelerMessageFrom(recipient, this)); }
public void ReadMessage_With_Invalid_TravelerID() { var mockRepo = new Mock<IRepository>(); Traveler expected = new Traveler { Firstname = "Nimrod" }; mockRepo.Setup(m => m.FindBy<Traveler>(t => t.TravelerID == It.IsAny<Guid>())).Returns(expected); MessageService ms = new MessageService(mockRepo.Object); var actual = ms.ReadMessage(new Guid("c085ce65-9fd8-e011-813c-206a8a339500"), It.IsAny<Guid>()); mockRepo.VerifyAll(); Assert.AreEqual(expected, actual); }
public static TravelerMessage CreateTravelerMessageFrom(Traveler traveler, Message message) { TravelerMessage travelerMsg = new TravelerMessage(); travelerMsg.Message = message; travelerMsg.Traveler = traveler; travelerMsg.TravelerID = traveler.TravelerID; travelerMsg.IsRead = false; travelerMsg.FolderID = FolderFactory.CreateFolderFrom(traveler, message); return travelerMsg; }
public static int CreateFolderFrom(Traveler traveler, Message message) { if (traveler.TravelerID == message.AuthorID) { return (int)FolderType.Sent; } else { return (int)FolderType.Inbox; } }
Traveler IConverter.MapTravelerForCreationToTravelerDto(TravelerForCreationDto traveler) { Traveler nuevoTraveler = new Traveler() { DateOfBirth = DateTime.Now, Name = traveler.FirstName, LastName = traveler.LastName, Genre = "N", ClientId = traveler.ClientId }; return(nuevoTraveler); }
public static TravelerDTO ToDTO(this Traveler traveler) { return(new TravelerDTO() { TravelerId = traveler.TravelerId, FirstName = traveler.FirstName, LastName = traveler.LastName, MobilePhone = traveler.MobilePhone, HomeAddress = traveler.HomeAddress, Passport = traveler.Passport, Email = traveler.Email }); }
public void PlayerDeparture_Traveler_UpdatePlayersIn() { Traveler traveler = new Traveler(); StepTestDummy step = new StepTestDummy(); List <Traveler> travelers = new List <Traveler>(); travelers.Add(traveler); travelers.Remove(traveler); step.PlayersIn.Add(traveler); step.PlayerDeparture(traveler); Assert.AreEqual(step.PlayersIn, travelers); }
public static void Initialize(Initializers ths) { Common.StringBuilder msg = new Common.StringBuilder("Initialize"); try { GameUtils.BeginLoadEvent("GameInit"); for (int i = 0x0; i < ths.mInitializerRecords.Count; i++) { Initializers.Record record = ths.mInitializerRecords[i]; GameUtils.BeginLoadEvent("GameInit/" + record.ToString()); Initializers.Action action = record.Instantiate(); if (action.Valid) { msg += Common.NewLine + "Instance: " + action.mInstance; msg += Common.NewLine + "Init: " + action.mInit; msg += Common.NewLine + "Type: " + action.mType; Traveler.InsanityWriteLog(msg); try { string header = action.mType + " - " + action.mInit; using (Common.TestSpan span = new Common.TestSpan(Common.ExternalTimeSpanLogger.sLogger, header)) { if (header == "Sims3.Gameplay.CAS.SimDescription - Void PostLoadFixUp()") { PostLoadFixUp(); } else { action.DoInit(); } } } catch (Exception e) { Common.Exception(msg, e); } } GameUtils.EndLoadEvent(); } GameUtils.EndLoadEvent(); } finally { Common.WriteLog(msg); } }
private static void OneDayPassedVacationUpdates(Household ths) { if (GameStates.CurrentDayOfTrip == GameStates.TripLength) { if (!GameStates.IsTravelling) { StyledNotification.Format format = new StyledNotification.Format(Common.LocalizeEAString("Gameplay/Vacation:OneDayLeft"), StyledNotification.NotificationStyle.kSystemMessage); StyledNotification.Show(format); } ths.mLastDayAlarm = AlarmManager.Global.AddAlarm(SimClock.HoursUntil(12f), TimeUnit.Hours, ths.HalfDayLeft, "Half Day left TNS", AlarmType.AlwaysPersisted, ths); } else if (GameStates.CurrentDayOfTrip > GameStates.TripLength) { bool denyTravel = false; if (!GameStates.IsTravelling) { foreach (Sim sim in Households.AllSims(ths)) { sim.VisaManager.UpdateDaysSpentInWorld(GameUtils.GetCurrentWorld(), GameStates.CurrentDayOfTrip - 0x1); if (sim.IsDying()) { denyTravel = true; } } } if (!denyTravel) { GameStates.StopSnappingPicturesIfNeccessary(); Sims3.Gameplay.UI.HudModel hudModel = Sims3.Gameplay.UI.Responder.Instance.HudModel as Sims3.Gameplay.UI.HudModel; if (hudModel != null) { WorldName currentWorld = GameUtils.GetCurrentWorld(); string str = hudModel.LocationName(currentWorld); SimpleMessageDialog.Show(TravelUtil.LocalizeString("TripOverCaption", new object[0x0]), TravelUtil.LocalizeString("TripOverText", new object[] { str }), ModalDialog.PauseMode.PauseSimulator); } } if (!denyTravel) { Traveler.SaveGame(); TravelUtil.PlayerMadeTravelRequest = true; // Calls custom function GameStatesEx.UpdateTelemetryAndTriggerTravelBackToHomeWorld(); } } }
public void PlayerArrival_TravelerAndDecision_UpdatePlayersIn() { int peopleLimit = 3; bool decision = false; Traveler traveler = new Traveler(); List <Traveler> travelers = new List <Traveler>(); travelers.Add(traveler); StationTestDummy station = new StationTestDummy(peopleLimit, new EndStep()); station.PlayerArrival(traveler, decision); Assert.AreEqual(station.PlayersIn, travelers); Assert.AreEqual(station.PlayersIn[0].Score, 0); }
// GET: Travelers/Delete/5 public async Task <ActionResult> Delete(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Traveler traveler = await db.Travelers.FindAsync(id); if (traveler == null) { return(HttpNotFound()); } return(View(traveler)); }
private List <Business> GetMatchingActivities(Traveler traveler) { List <Business> output = new List <Business>(); for (int i = 0; i < traveler.Interests.Count; i++) { List <Business> businesses = YelpAPIHandler.GetActivities(traveler.CurrentItinerary.HotelLocationString, 36000, traveler.Interests.ToList()[i].Value, "").Result.businesses.ToList(); foreach (Business b in businesses) { output.Add(b); } } return(output); }
public static void MergeTravelInformation(SimDescription ths, MiniSimDescription msd, Dictionary <ulong, SimDescription> allSims) { Common.StringBuilder msg = new Common.StringBuilder("MergeTravelInformation " + ths.FullName + Common.NewLine); msg += "A"; Traveler.InsanityWriteLog(msg); foreach (MiniRelationship relationship in msd.MiniRelationships) { SimDescription y = null; if (!allSims.TryGetValue(relationship.SimDescriptionId, out y)) { y = SimDescription.Find(relationship.SimDescriptionId); } if (y != null) { Relationship unsafely = null; try { unsafely = Relationship.GetUnsafely(ths, y); } catch (Exception e) { Common.Exception(ths, e); } if (unsafely != null) { float change = relationship.Value - unsafely.LTR.Liking; if (change != 0f) { unsafely.LTR.UpdateLiking(change); } RomanceVisibilityState.MergeTravelInformationOnTravelBackHome(relationship, unsafely); } } } msg += "B"; Traveler.InsanityWriteLog(msg); ths.CASGenealogy = msd.CASGenealogy; AgingCheckTask.Add(ths, msd); msg += "C"; Traveler.InsanityWriteLog(msg); }
public override bool Run() { try { bool flag; try { Actor.ModifyFunds(-TravelCost); AssurePlayerThatBabiesAndToddlersAreFine(); if (RouteGroupToGatheringLocation()) { Audio.StartObjectSound(Actor.ObjectId, "sting_ep9_goodbye_move", false); if (CreateMovingVan() && !Target.IsWorldLot) { CreateAndCarrySuitCase(); mTriggerWorldTransition = AlarmManager.Global.AddAlarm((float)TravelUtil.kTravelToUniversityWorldTimeout, TimeUnit.Minutes, new AlarmTimerCallback(AddExitReasonToAllSims), "AlarmForceTransitionToUniversityWorld", AlarmType.AlwaysPersisted, Actor); mRoute = Actor.CreateRoute(); Target.PlanToLot(mRoute); Actor.DoRouteWithFollowers(mRoute, mAdditionalTravelingSims); PutAwayAndDestorySuitCase(true); } } //Custom new Common.AlarmTask(2, TimeUnit.Minutes, TriggerTravelToUniversityWorld); Traveler.SaveGame(); flag = true; } finally { TravelUtil.PlayerMadeTravelRequest = false; } return(flag); } catch (ResetException) { throw; } catch (Exception e) { Common.Exception(Actor, Target, e); } finally { TravelUtil.PlayerMadeTravelRequest = false; } return(false); }
/// <summary> /// Get the traveler associated with this machine /// </summary> /// <returns></returns> public async Task <Traveler> GetTravelerAsync() { var hardwareId = GetHardwareId(); var uri = new Uri(string.Format(Addresses.GetTravelerByIdentityUri, hardwareId)); var response = await GetAsync(uri); Traveler traveler = null; if (response.Success) { traveler = JsonSerializerHelper.Deserialize <TravelerDTO>(response.Content).ToObject(); } return(traveler); }
public void Init() { travelAgent = new TravelAgent(1000); timeOfBooking = new DateTime(2018, 05, 11); tripToBook = travelAgent.Trips.First(trip => trip.StartDate > timeOfBooking); diligentDave = new Traveler(); diligentDave.Bookings.Add(new Booking { BookingCode = BookingCode.PaidFor }); diligentDave.Bookings.Add(new Booking { BookingCode = BookingCode.PaidFor }); diligentDave.Bookings.Add(new Booking { BookingCode = BookingCode.PaidFor }); negligentNick = new Traveler(); negligentNick.Bookings.Add(new Booking { BookingCode = BookingCode.PaidFor }); negligentNick.Bookings.Add(new Booking { BookingCode = BookingCode.Unpaid }); negligentNick.Bookings.Add(new Booking { BookingCode = BookingCode.Unpaid }); negligentNick.Bookings.Add(new Booking { BookingCode = BookingCode.Unpaid }); firstTimeFred = new Traveler(); travelerTed = new Traveler(); travelerTed.Bookings.Add(new Booking { BookingCode = BookingCode.PaidFor }); travelerTed.Bookings.Add(new Booking { BookingCode = BookingCode.PaidFor }); travelerTed.Bookings.Add(new Booking { BookingCode = BookingCode.PaidFor }); travelerTed.Bookings.Add(new Booking { BookingCode = BookingCode.Unpaid }); travelerTed.Bookings.Add(new Booking { BookingCode = BookingCode.Unpaid }); }
private IHttpActionResult DeleteTraveler(int id) { Traveler traveler = Uow.Repository <Traveler>().Find(id); if (traveler == null) { return(NotFound()); } Uow.Repository <Traveler>().Delete(traveler); Uow.Save(); return(Ok(traveler)); }
public void SetupNewTConnects_NoAction() { using (IDbContext idtoFakeContext = new IDTOFakeContext()) using (IUnitOfWork unitOfWork = new UnitOfWork(idtoFakeContext)) { Traveler traveler = new Traveler(); traveler.Id = 1; traveler.LastName = "MDT2"; Trip trip = new Trip(); trip.Id = 1; trip.TripStartDate = DateTime.UtcNow.AddMinutes(20); //make in future trip.TravelerId = traveler.Id; trip.Traveler = traveler; //must set object for navigation property or lazy loading wont work for mock. Step stepEntity = new Step(); stepEntity.Id = 1; stepEntity.StepNumber = 1; stepEntity.TripId = trip.Id; stepEntity.Trip = trip;//must set object for navigation property or lazy loading wont work for mock. TConnect tconn = new TConnect(); tconn.Id = 1; tconn.TConnectStatusId = (int)TConnectStatuses.New; tconn.InboundStepId = stepEntity.Id; tconn.InboundStep = stepEntity;//must set object for navigation property or lazy loading wont work for mock. unitOfWork.Repository <Traveler>().Insert(traveler); unitOfWork.Repository <Trip>().Insert(trip); unitOfWork.Repository <Step>().Insert(stepEntity); unitOfWork.Repository <TConnect>().Insert(tconn); unitOfWork.Save(); List <TConnect> newTconnects = unitOfWork.Repository <TConnect>().Query().Include(i => i.InboundStep.Trip.Traveler).Get() .Where(s => s.TConnectStatusId == (int)TConnectStatuses.New).ToList(); TConnectMonitorWorker worker = new TConnectMonitorWorker(new List <BusScheduleInterface.IBusSchedule>(new StubIBusSchedule[] { new StubIBusSchedule() })); worker.SetupNewTConnects(unitOfWork); List <TConnect> monitoredTConnects = unitOfWork.Repository <TConnect>().Query().Get() .Where(s => s.TConnectStatusId == (int)TConnectStatuses.New).ToList(); Assert.AreEqual(1, monitoredTConnects.Count); } }
public LoginForm(Traveler traveler) { InitializeComponent(); Mode = CreatorMode.Edit; SelectedTraveler = traveler; tcLogin.Appearance = TabAppearance.FlatButtons; tcLogin.ItemSize = new Size(0, 1); tcLogin.SizeMode = TabSizeMode.Fixed; tcLogin.SelectedTab = ChPassword; tChPasswordCurrent.PasswordChar = true; tChPasswordPassword.PasswordChar = true; tChPasswordConfirm.PasswordChar = true; }
// GET: Traveler/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Traveler traveler = db.Travelers.Find(id); if (traveler == null) { return(HttpNotFound()); } return(View(traveler)); }
public GenericCombatStoryline() { _neededAmmo = new List<Ammo>(); _agentInteraction = new AgentInteraction(); _arm = new Arm(); _traveler = new Traveler(); _combat = new Combat(); _drones = new Drones(); _salvage = new Salvage(); _missionController = new MissionController(); Settings.Instance.SettingsLoaded += ApplySettings; }
public GenericCombatStoryline() { _neededAmmo = new List <Ammo>(); _agentInteraction = new AgentInteraction(); _arm = new Arm(); _traveler = new Traveler(); _combat = new Combat(); _drones = new Drones(); _salvage = new Salvage(); _missionController = new MissionController(); Settings.Instance.SettingsLoaded += ApplySettings; }
public override bool Run() { try { if (Actor.FamilyFunds >= TravelCost) { if (TravelingSimGuids.Count > 0) { Actor.ModifyFunds(-TravelCost); AssurePlayerThatBabiesAndToddlersAreFine(); Boat.MakeSimExitAndParkBoatIfPossible(Actor); if (Followers != null) { foreach (Sim sim in Followers) { Boat.MakeSimExitAndParkBoatIfPossible(sim); } } if (!Target.IsWorldLot) { mTriggerWorldTransition = AlarmManager.Global.AddAlarm((float)TravelUtil.kTravelToVacationWorldTimeout, TimeUnit.Minutes, AddExitReasonToAllSims, "Travel to vacation world", AlarmType.AlwaysPersisted, Actor); Route r = Actor.CreateRoute(); Target.PlanToLot(r); Actor.DoRouteWithFollowers(r, Followers); } } new Common.AlarmTask(2, TimeUnit.Minutes, TriggerTravelToVacationWorld); Traveler.SaveGame(); return(true); } } catch (ResetException) { throw; } catch (Exception e) { Common.Exception(Actor, Target, e); } finally { TravelUtil.PlayerMadeTravelRequest = false; } return(false); }
// DELETE: odata/Travelers(5) public async Task <IHttpActionResult> Delete([FromODataUri] string key) { Traveler traveler = await db.Users.FindAsync(key); if (traveler == null) { return(NotFound()); } db.Users.Remove(traveler); await db.SaveChangesAsync(); return(StatusCode(HttpStatusCode.NoContent)); }
/// <summary> /// Se altera el método PlayerArrival definido en la superclase Step para adecuarlo a sus necesidades. /// Se valida que el traveler recibido por parámetro no sea null, lo agrega a la lista de PlayersIn y /// evalúa si se cumplen las condiciones para la entrada del viajero a la experiencia. /// </summary> /// <param name="player"></param> /// <param name="decision"></param> public override void PlayerArrival(Traveler player, bool decision) { if (player == null) { throw new TravelerNullException("Traveler no puede ser null"); } PlayersIn.Add(player); if (decision == true && IsRoomAvailable() == true && !PlayersRegistry.ContainsKey(player)) { RegisterPlayer(player); Host(player); } }
public ITraveler Add(string firstName, string lastName, string phoneNumber, string directionFrom, string directionTo, bool doesPay, int price) { Traveler traveler = new Traveler { FirstName = firstName, LastName = lastName, PhoneNumber = phoneNumber, DirectionFrom = directionFrom, DirectionTo = directionTo, DoesPay = doesPay, Price = price }; return(InnerAdd(traveler)); }
/// <summary> /// Modify the traveler details /// </summary> /// <param name="traveler">The Traveler</param> /// <returns></returns> public async Task UpdateTravelerAsync(Traveler traveler) { var dto = traveler.ToDTO(); dto.TravelerUserIdentity = GetHardwareId(); var serializedTraveler = JsonSerializerHelper.Serialize(dto); var uri = new Uri(string.Format(Addresses.UpdateTravelerUri, traveler.TravelerId)); var response = await PutAsync(uri, serializedTraveler); if (!response.Success) { ValidationDTO validations = JsonSerializerHelper.Deserialize <ValidationDTO>(response.Content); throw new ArgumentException(validations.ModelState.First().Value.First()); } }
public TravelerResponse ToTravelerResponse(Traveler traveler) { if (traveler == null) { return(null); } return(new TravelerResponse { FirstName = traveler.User.FirstName, LastName = traveler.User.LastName, Company = traveler.User.Company, Email = traveler.User.Email, }); }
public void AllBorderZonesContainsAllBorderPoints() { var traveler = new Traveler { CurrentZone = ExampleWorld.ZoneB() }; var want = new List <Vector3> { new Vector3(0, 0, 1), new Vector3(1, 0, 1), new Vector3(1, 0, 0) }; var got = traveler.AllBorderZonePoints; Assert.Equal(want, got); }
public times findTime(Traveler t, string to, string start) { times time; if (to != "Linz") { time = compareTime(t.FromLinz, start); } else { time = compareTime(t.ToLinz, start); } return(time); }
public string findNext(string from, string to, string start) { Console.WriteLine(start); Traveler t = findCity(from, to); if (t != null) { times time = findTime(t, to, start); if (time != null) { return("{ depart: " + from + ", departureTime: " + time.Leave + ", arrive: " + to + ", arrivalTime: " + time.Arrive + " }"); } } return(""); }
public void UpdateTravelerCoordinates(Traveler traveler, string ipAddress) { if (String.IsNullOrEmpty(ipAddress)) return; GeoCoordinates travelerGeoCoords = GetCurrentLocationWithIPAddress(ipAddress); //Updating traveler's location only if it's different than what's stored in the database if (travelerGeoCoords.IsValid() && traveler.IsLocationChanged(travelerGeoCoords)) { traveler.Latitude = travelerGeoCoords.Latitude; traveler.Longtitude = travelerGeoCoords.Longtitude; traveler.City = travelerGeoCoords.City; traveler.Country = travelerGeoCoords.Country; } }
public HttpResponseMessage Post([FromBody] Traveler traveler) { // saving the new order to the database Travelers.Add(traveler); Travelers.Save(); // creating the response, with three key features: // 1. the newly saved entity // 2. 201 Created status code // 3. Location header with the location of the new resource var response = Request.CreateResponse(HttpStatusCode.Created, traveler); response.Headers.Location = new Uri(Request.RequestUri, traveler.TravelerId.ToString()); return(response); }
private async Task <bool> LoadTraveler() { _settings.Remove(Constants.TravelerId); var traveler = await _data.GetTravelerAsync(); if (traveler != null) { _settings.Add(Constants.TravelerId, traveler.TravelerId.ToString()); } this.Traveler = traveler; return(traveler != null); }
public ActionResult Delete(int id) { try { Traveler traveler = db.Travelers.Find(id); db.Travelers.Remove(traveler); db.SaveChanges(); } catch (DataException /* dex */) { //Log the error (uncomment dex variable name and add a line here to write a log. return(RedirectToAction("Delete", new { id = id, saveChangesError = true })); } return(RedirectToAction("Index")); }
public async Task <IActionResult> OnGetAsync(string id) { if (id == null) { return(NotFound()); } Traveler = await _context.Traveler.FirstOrDefaultAsync(m => m.OwnerID == id); if (Traveler == null) { return(NotFound()); } return(Page()); }
public Storyline() { _combat = new Combat(); _traveler = new Traveler(); _agentInteraction = new AgentInteraction(); _agentBlacklist = new List<long>(); _storylines = new Dictionary<string, IStoryline>(); _storylines.Add("Materials For War Preparation", new MaterialsForWarPreparation()); _storylines.Add("Shipyard Theft", new GenericCombatStoryline()); _storylines.Add("Evolution", new GenericCombatStoryline()); _storylines.Add("Record Cleaning", new GenericCombatStoryline()); _storylines.Add("Covering Your Tracks", new GenericCombatStoryline()); _storylines.Add("Crowd Control", new GenericCombatStoryline()); _storylines.Add("Transaction Data Delivery", new TransactionDataDelivery()); }
public Storyline() { _combat = new Combat(); _traveler = new Traveler(); _agentInteraction = new AgentInteraction(); _agentBlacklist = new List<long>(); _storylines = new Dictionary<string, IStoryline>(); //_storylines.Add("__", new GenericCombatStoryline()); // broken in crucible 1.5 (yes/no dialog needs directeve support) _storylines.Add("Materials For War Preparation", new MaterialsForWarPreparation()); _storylines.Add("Shipyard Theft", new GenericCombatStoryline()); _storylines.Add("Evolution", new GenericCombatStoryline()); _storylines.Add("Record Cleaning", new GenericCombatStoryline()); _storylines.Add("Covering Your Tracks", new GenericCombatStoryline()); _storylines.Add("Crowd Control", new GenericCombatStoryline()); _storylines.Add("A Force to Be Reckoned With", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Ambush In The Dark (1 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - The Kidnapping (3 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Incriminating Evidence (5 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - The Secret Meeting (7 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Defend the Civilian Convoy (8 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - Retrieve the Prisoners (9 of 10)", new GenericCombatStoryline()); _storylines.Add("Kidnappers Strike - The Final Battle (10 of 10)", new GenericCombatStoryline()); _storylines.Add("Whispers in the Dark - First Contact (1 of 4)", new GenericCombatStoryline()); _storylines.Add("Whispers in the Dark - Lay and Pray (2 of 4)", new GenericCombatStoryline()); _storylines.Add("Whispers in the Dark - The Outpost (4 of 4)", new GenericCombatStoryline()); _storylines.Add("Transaction Data Delivery", new TransactionDataDelivery()); _storylines.Add("Innocents in the Crossfire", new GenericCombatStoryline()); //_storylines.Add("Patient Zero", new GenericCombatStoryline()); _storylines.Add("Soothe the Salvage Beast", new GenericCombatStoryline()); _storylines.Add("Forgotten Outpost", new GenericCombatStoryline()); _storylines.Add("Stem the Flow", new GenericCombatStoryline()); _storylines.Add("Quota Season", new GenericCombatStoryline()); //_storylines.Add("Matriarch", new GenericCombatStoryline()); //_storylines.Add("Diplomatic Incident", new GenericCombatStoryline()); _storylines.Add("Nine Tenths of the Wormhole", new GenericCombatStoryline()); }
static void Main(string[] args) { Logging.Log("GoToBM: Started"); if (args.Length == 0 || args[0].Length < 1) { Logging.Log("GoToBM: You need to supply a bookmark name"); Logging.Log("GoToBM: Ended"); return; } _BM = args[0]; _BM = _BM.ToLower(); _directEve = new DirectEve(); Cache.Instance.DirectEve = _directEve; _directEve.OnFrame += OnFrame; _traveler = new Traveler(); while (!_done) { System.Threading.Thread.Sleep(50); } Logging.Log("GoToBM: Exiting"); return; }
public Storyline() { _combat = new Combat(); _traveler = new Traveler(); _agentInteraction = new AgentInteraction(); Cache.Instance.AgentBlacklist = new List<long>(); _storylines = new Dictionary<string, IStoryline> { // Examples //{"StorylineCombatNameHere", new GenericCombatStoryline()}, //{"StorylineCourierNameHere", new GenericCourier()}, /* COURIER/DELIVERY - ALL FACTIONS */ {"Materials For War Preparation", new MaterialsForWarPreparation()}, {"Transaction Data Delivery", new TransactionDataDelivery()}, //{"A Special Delivery", new GenericCourier()}, // Needs 40k m3 cargo capacity (i.e. Iteron Mark V, T2 CHO rigs) /* COURIER/DELIVERY - AMARR */ {"Opiate of the Masses", new GenericCourier()}, {"Send the Marines", new GenericCourier()}, {"The Governors Ball", new GenericCourier()}, {"The State of the Empire", new GenericCourier()}, {"Unmasking the Traitor", new GenericCourier()}, /* COURIER/DELIVERY - CALDARI */ {"A Desperate Rescue", new GenericCourier()}, {"Black Ops Crisis", new GenericCourier()}, {"Fire and Ice", new GenericCourier()}, {"Hunting Black Dog", new GenericCourier()}, {"Operation Doorstop", new GenericCourier()}, /* COURIER/DELIVERY - GALLENTE */ {"A Fine Wine", new GenericCourier()}, {"On the Run", new GenericCourier()}, {"A Fathers Love", new GenericCourier()}, {"A Greener World", new GenericCourier()}, {"Eradication", new GenericCourier()}, {"Evacuation", new GenericCourier()}, /* COURIER/DELIVERY - MINMATAR */ {"A Cargo With Attitude", new GenericCourier()}, {"A Load of Scrap", new GenericCourier()}, {"Brand New Harvesters", new GenericCourier()}, {"Heart of the Rogue Drone", new GenericCourier()}, {"Their Secret Defense", new GenericCourier()}, /* COURIER/DELIVERY - MORE THAN ONE RACE */ /* COMBAT - ALL FACTIONS */ {"Covering Your Tracks", new GenericCombatStoryline()}, {"Evolution", new GenericCombatStoryline()}, {"Patient Zero", new GenericCombatStoryline()}, {"Record Cleaning", new GenericCombatStoryline()}, {"Shipyard Theft", new GenericCombatStoryline()}, {"Soothe the Salvage Beast", new GenericCombatStoryline()}, /* COMBAT - AMARR */ {"Blood Farm", new GenericCombatStoryline()}, {"Dissidents", new GenericCombatStoryline()}, {"Extract the Renegade", new GenericCombatStoryline()}, {"Gate to Nowhere", new GenericCombatStoryline()}, {"Racetrack Ruckus", new GenericCombatStoryline()}, {"The Mouthy Merc", new GenericCombatStoryline()}, /* COMBAT - CALDARI */ {"Crowd Control", new GenericCombatStoryline()}, {"Forgotten Outpost", new GenericCombatStoryline()}, {"Illegal Mining", new GenericCombatStoryline()}, {"Innocents in the Crossfire", new GenericCombatStoryline()}, {"Jealous Rivals", new GenericCombatStoryline()}, {"Stem the Flow", new GenericCombatStoryline()}, /* COMBAT - GALLENTE */ {"A Force to Be Reckoned With", new GenericCombatStoryline()}, {"Kidnappers Strike - Ambush In The Dark (1 of 10)", new GenericCombatStoryline()}, {"Kidnappers Strike - The Kidnapping (3 of 10)", new GenericCombatStoryline()}, {"Kidnappers Strike - Incriminating Evidence (5 of 10)", new GenericCombatStoryline()}, {"Kidnappers Strike - The Secret Meeting (7 of 10)", new GenericCombatStoryline()}, {"Kidnappers Strike - Defend the Civilian Convoy (8 of 10)", new GenericCombatStoryline()}, {"Kidnappers Strike - Retrieve the Prisoners (9 of 10)", new GenericCombatStoryline()}, {"Kidnappers Strike - The Final Battle (10 of 10)", new GenericCombatStoryline()}, {"Whispers in the Dark - First Contact (1 of 4)", new GenericCombatStoryline()}, {"Whispers in the Dark - Lay and Pray (2 of 4)", new GenericCombatStoryline()}, {"Whispers in the Dark - The Outpost (4 of 4)", new GenericCombatStoryline()}, /* COMBAT - MINMATAR */ {"Amarrian Excavators", new GenericCombatStoryline()}, {"Diplomatic Incident", new GenericCombatStoryline()}, {"Matriarch", new GenericCombatStoryline()}, {"Nine Tenths of the Wormhole", new GenericCombatStoryline()}, {"Postmodern Primitives", new GenericCombatStoryline()}, {"Quota Season", new GenericCombatStoryline()}, {"The Blood of Angry Men", new GenericCombatStoryline()}, /* COMBAT - MORE THAN ONE RACE */ }; }
public void UpdateTravelerCoordinates(Traveler traveler, GeoCoordinates coords) { }
/// <summary> /// Traveler 생성 /// </summary> /// <param name="sequence"></param> /// <returns></returns> public static Traveler GenerateFrom(FSNSnapshotSequence sequence, int snapshotIndex = 0) { var newtr = new Traveler(); newtr.m_current = sequence.Get(snapshotIndex); newtr.m_currentSeq = sequence; return newtr; }
public void UpdateProfile(Traveler traveler) { _repository.Save<Traveler>(traveler); _repository.Commit(); }
/// <summary> /// Someone has left our party, ohh what a pity. /// </summary> /// <param name="_trv"></param> public void LeaveCar(Traveler _trv) { _trv.FinishTravel(GPS.TotalDistance); _Events.Add(new LeaveCarTravelEvent(GPS.TotalDistance)); }
/// <summary> /// Adds new traveler to our trip /// </summary> /// <param name="_trv">Traveler that just eneter a car!</param> public void EnterCar(Traveler _trv) { _trv._startDistance = GPS.TotalDistance; Travelers.Add(_trv); _Events.Add(new EnterCarTravelEvent(GPS.TotalDistance)); }
public Questor(frmMain form1) { m_Parent = form1; _lastPulse = DateTime.MinValue; _random = new Random(); //_debugmodule = new DebugModule(); //_scoop = new Scoop(); _salvage = new Salvage(); _defense = new Defense(); _localwatch = new LocalWatch(); _scanInteraction = new ScanInteraction(); _combat = new Combat(); _traveler = new Traveler(); _unloadLoot = new UnloadLoot(); _agentInteraction = new AgentInteraction(); _arm = new Arm(); _courier = new CourierMission(); _switch = new SwitchShip(); _missionController = new MissionController(); _drones = new Drones(); _panic = new Panic(); _storyline = new Storyline(); Settings.Instance.SettingsLoaded += SettingsLoaded; // State fixed on ExecuteMission State = QuestorState.Idle; _directEve = new DirectEve(); Cache.Instance.DirectEve = _directEve; Cache.Instance.StopTimeSpecified = Program.stopTimeSpecified; Cache.Instance.MaxRuntime = Program.maxRuntime; Cache.Instance.StopTime = Program._stopTime; _questorStarted = DateTime.Now; _directEve.OnFrame += OnFrame; }
public TransactionDataDelivery() { _traveler = new Traveler(); }
// ================================================================ // Events // ================================================================ public void OnTravelerEnterMe(Traveler traveler) { // Increase familiarity! familiarity += 0.03f; // if (familiarity > 1) { familiarity = 1; } // Shift charge! charge += (traveler.Charge*0.4f-charge) / 8f; }