public Location LoadStraightFour() { Location returnData; returnData = new Location(); returnData.Name = "Ankou Forest Straight Path Four"; returnData.Description = "The long path of the forest continues. Light does not penetrate the trees here, the darkness is all encompassing, and the air is crushing."; //Actions // Adjacent Locations Dictionary <string, LocationDefinition> adjacentLocationDefinitions = new Dictionary <string, LocationDefinition>(); LocationDefinition locationDefinition = AnkouForest.GetTownInstance().GetStraightThreeDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); Accomplishment rescuePeasants = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Rescue Peasants")); if (GameState.Hero.Accomplishments.Contains(rescuePeasants)) { locationDefinition = AnkouBanditShack.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } locationDefinition = AnkouForest.GetTownInstance().GetStraightFiveDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); returnData.AdjacentLocationDefinitions = adjacentLocationDefinitions; return(returnData); }
public Location LoadRightThree() { Location returnData; returnData = new Location(); returnData.Name = "Ankou Forest Right Path Three"; returnData.Description = "The long path of the forest ends here. There are rocks placed on the path to prevent further travel in this direction. Light does not penetrate the trees here, the darkness is all ecompassing, and the air is crushing."; //Actions // Adjacent Locations Dictionary <string, LocationDefinition> adjacentLocationDefinitions = new Dictionary <string, LocationDefinition>(); // Town Center LocationDefinition locationDefinition = AnkouForest.GetTownInstance().GetRightTwoDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); Accomplishment killNecroContractor = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Kill Necromancer Contractor")); if (GameState.Hero.Accomplishments.Contains(killNecroContractor)) { locationDefinition = AnkouBanditAndNecroCave.GetTownInstance().GetStartingLocationDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } returnData.AdjacentLocationDefinitions = adjacentLocationDefinitions; return(returnData); }
public void HeardTravelToTowerRumor() { Accomplishment accomplishment = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Travel to the Tower")); GameState.Hero.Accomplishments.Add(accomplishment); //Reload the TownCenter so it will open up the Ariean's Estate LocationHandler.ResetLocation(TOWN_CENTER_KEY); }
public void HeardScoutUndergroundHideoutRumor() { Accomplishment accomplishment = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Scouted Underground Hideout")); GameState.Hero.Accomplishments.Add(accomplishment); //Reload the TownCenter so it will open up the Ariean's Estate LocationHandler.ResetLocation(TOWN_CENTER_KEY); }
public void HeardLocateNecrosRumor() { Accomplishment accomplishment = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Locate Necromancers")); GameState.Hero.Accomplishments.Add(accomplishment); //Reload the TownCenter so it will open up the Forest to go hunt down the necromancer camp LocationHandler.ResetLocation(TOWN_CENTER_KEY); }
public void HeardScummyMurdererRomor() { Accomplishment accomplishment = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Scummy Murderer")); GameState.Hero.Accomplishments.Add(accomplishment); //Reload the TownCenter so it will open up the Shack that the murderer is in. LocationHandler.ResetLocation(TOWN_CENTER_KEY); }
public Location LoadBufferRoom() { Location returnData; returnData = new Location(); returnData.Name = "Buffer Room"; bool defeatedBandits = Convert.ToBoolean(LocationHandler.GetLocationStateValue(Ankou.LOCATION_STATE_KEY, AnkouBanditShack.DEFEATED_BUFFER_ROOM_BANDITS)); //Actions if (!defeatedBandits) { returnData.Description = "A small room that separates the kitchen from the holding room. Three bandits are guarding the holding room."; List <LocationAction> locationActions = new List <LocationAction>(); List <Mob> bandit = new List <Mob>(); bandit.Add(new Bandit()); bandit.Add(new Bandit()); bandit.Add(new Bandit()); CombatAction combatAction = new CombatAction("Bandits", bandit); combatAction.PostCombat += BufferRoomBandits; locationActions.Add(combatAction); returnData.Actions = locationActions; } else { returnData.Description = "A small room that separates the kitchen from the holding room. Three bandits lay vanquished before the door."; } // Adjacent Locations Dictionary <string, LocationDefinition> adjacentLocationDefinitions = new Dictionary <string, LocationDefinition>(); // Town Center LocationDefinition locationDefinition = AnkouBanditShack.GetTownInstance().GetKitchenDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); if (defeatedBandits) { locationDefinition = AnkouBanditShack.GetTownInstance().GetHoldingRoomDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } Accomplishment scoutUndergroundHideout = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Scouted Underground Hideout")); if (GameState.Hero.Accomplishments.Contains(scoutUndergroundHideout)) { locationDefinition = AnkouUndergroundHideOut.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } returnData.AdjacentLocationDefinitions = adjacentLocationDefinitions; return(returnData); }
public Location LoadStraightTwo() { Location returnData; returnData = new Location(); returnData.Name = "Ankou Forest Straight Path Two"; returnData.Description = "The long path of the forest continues. There is now a three way fork in the road. The road splits to the left, right, and continues on straight. Light does not penetrate the trees here, the darkness is all encompassing, and the air is crushing."; //Actions // Adjacent Locations Dictionary <string, LocationDefinition> adjacentLocationDefinitions = new Dictionary <string, LocationDefinition>(); LocationDefinition locationDefinition = AnkouForest.GetTownInstance().GetStraightOneDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); locationDefinition = AnkouForest.GetTownInstance().GetStraightThreeDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); locationDefinition = AnkouForest.GetTownInstance().GetLeftOneDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); locationDefinition = AnkouForest.GetTownInstance().GetRightOneDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); Accomplishment investigatePeasantLeader = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Investigated Peasant Leader")); if (GameState.Hero.Accomplishments.Contains(investigatePeasantLeader)) { locationDefinition = AnkouForestCabin.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } returnData.AdjacentLocationDefinitions = adjacentLocationDefinitions; return(returnData); }
public Location LoadTownCenter() { Location returnData; LocationAction locationAction; returnData = new Location(); returnData.Name = "Ankou Town Center"; returnData.Description = "Welcome to the cozy Ankou Town Center."; // Location Actions List <LocationAction> locationActions = new List <LocationAction>(); locationAction = new DisplayStatsAction(); locationActions.Add(locationAction); locationAction = new DisplayInventoryAction(); locationActions.Add(locationAction); locationAction = new DisplayPotionBagAction(); locationActions.Add(locationAction); locationAction = new DisplayEquippedAction(); locationActions.Add(locationAction); locationAction = new AffixSwapperAction(); locationActions.Add(locationAction); locationAction = new StoreAction(); locationActions.Add(locationAction); locationAction = new MainMenuAction(); locationActions.Add(locationAction); locationAction = new ExitGame(); locationActions.Add(locationAction); returnData.Actions = locationActions; // Adjacent Locations Dictionary <string, LocationDefinition> adjacentLocationDefinitions = new Dictionary <string, LocationDefinition>(); LocationDefinition locationDefinition = GetArenaDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); locationDefinition = GetInnDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); locationDefinition = GetConstableOfficeDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); Accomplishment scummyMurdererMission = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Scummy Murderer")); if (GameState.Hero.Accomplishments.Contains(scummyMurdererMission)) { locationDefinition = AnkouMurderShack.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } Accomplishment locateNecroMission = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Locate Necromancers")); if (GameState.Hero.Accomplishments.Contains(locateNecroMission)) { locationDefinition = AnkouForest.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } Accomplishment silenceAriean = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Silence Ariean")); if (GameState.Hero.Accomplishments.Contains(silenceAriean)) { locationDefinition = AnkouArieansEstate.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } Accomplishment killBanditTorturer = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Kill Bandit Torturer")); if (GameState.Hero.Accomplishments.Contains(killBanditTorturer)) { locationDefinition = AnkouSeedyInn.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } Accomplishment investigateTunnels = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Investigate Tunnels")); if (GameState.Hero.Accomplishments.Contains(investigateTunnels)) { locationDefinition = AnkouUndergroundTunnel.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } Accomplishment battleOfAnkou = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Battle of Ankou")); if (GameState.Hero.Accomplishments.Contains(battleOfAnkou)) { locationDefinition = AnkouBattle.GetTownInstance().GetEntranceDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } Accomplishment travelToTower = Ankou.GetAnkouAccomplishments().Find(x => x.Name.Contains("Travel to the Tower")); if (GameState.Hero.Accomplishments.Contains(travelToTower)) { locationDefinition = BeachTower.GetTownInstance().GetTownCenterDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); } locationDefinition = Watertown.GetTownInstance().GetTownCenterDefinition(); adjacentLocationDefinitions.Add(locationDefinition.LocationKey, locationDefinition); returnData.AdjacentLocationDefinitions = adjacentLocationDefinitions; return(returnData); }