Beispiel #1
0
        // TODO: Probably should change the design of the GetTownCenter, etc..
        // to public Get properties as this is exactly how they are operating.
        public LocationDefinition GetTownCenterDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = TOWN_CENTER_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Beach Tower Main Floor";
                returnData.DoLoadLocation = LoadTownCenter;

                LocationHandler.AddLocation(returnData);
            }

            if (GameState.Hero.startingLocation != "Beach Tower")
            {
                GameState.Hero.startingLocation = "Beach Tower";
                LocationHandler.ResetLocation(TOWN_CENTER_KEY);
            }

            return(returnData);
        }
Beispiel #2
0
        public LocationDefinition GetMasterBedroomDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = UPSTAIRS_MASTER_BEDROOM_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Master Bedroom";
                returnData.DoLoadLocation = LoadMasterBedroom;
                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #3
0
        public LocationDefinition GetUpstairsHallwayDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = UPSTAIRS_HALLWAY_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Upstairs Hallway";
                returnData.DoLoadLocation = LoadUpstairsHallway;
                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #4
0
        public LocationDefinition GetEntranceDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = ENTRANCE_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Ashen Forest";
                returnData.DoLoadLocation = LoadEntrance;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #5
0
        public LocationDefinition GetNorthernPathFiveDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = NORTHERN_PATH_FIVE_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Ashen Forest Northen Path Five";
                returnData.DoLoadLocation = LoadNorthernPathFive;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #6
0
        public LocationDefinition GetForestPathStartDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = FOREST_PATH_START_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Ashen Forest Path Beginning";
                returnData.DoLoadLocation = LoadForestPathStart;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #7
0
        public LocationDefinition GetCemeteryEntranceDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = CEMETERY_ENTRANCE_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Cemetery Entrance";
                returnData.DoLoadLocation = LoadCemeteryEntrance;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #8
0
        public LocationDefinition GetReligiousShrineClearingDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = RELIGIOUS_SHRINE_CLEARING_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Religious Shrine Clearing";
                returnData.DoLoadLocation = LoadReligiousShrineClearing;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #9
0
        public LocationDefinition GetStatueClearingDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = STATUE_CLEARING_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Holy Statue Clearing";
                returnData.DoLoadLocation = LoadStatueClearing;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetMainRoadDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = MAIN_ROAD_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Main Road";
                returnData.DoLoadLocation = LoadMainRoad;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #11
0
        public LocationDefinition GetTortureChamberDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = TORTURE_CHAMBER_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Torture Chamber";
                returnData.DoLoadLocation = LoadTortureChamber;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #12
0
        public LocationDefinition GetStorageDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = STORAGE_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Storage";
                returnData.DoLoadLocation = LoadStorage;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #13
0
        public LocationDefinition GetBasementLandingDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = BASEMENT_LANDING_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Basement Landing";
                returnData.DoLoadLocation = LoadBasementLanding;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #14
0
        public LocationDefinition GetKitchenDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = KITCHEN_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Kitchen";
                returnData.DoLoadLocation = LoadKitchen;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #15
0
        public LocationDefinition GetLoungingRoomDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = LOUNGING_ROOM_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Lounging Room";
                returnData.DoLoadLocation = LoadLoungingRoom;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetNewGravesDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = NEW_GRAVES_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "New Graves";
                returnData.DoLoadLocation = LoadNewGraves;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetCatacombsDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = CATACOMBS_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Catacombs";
                returnData.DoLoadLocation = LoadCatacombs;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetLockedHouseDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = LOCKED_HOUSE_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Locked House";
                returnData.DoLoadLocation = LoadLockedHouse;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #19
0
        public LocationDefinition GetTwistingPathDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = TWISTING_PATH_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Twisting Path";
                returnData.DoLoadLocation = LoadTwistingPath;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #20
0
        public LocationDefinition GetLoadCharactersMenuDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = LOAD_CHARACTER_MENU_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Load Character";
                returnData.DoLoadLocation = LoadLoadCharacterMenu;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #21
0
        public LocationDefinition GetUndergroundPathDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = UNDERGROUND_PATH_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Underground Path";
                returnData.DoLoadLocation = LoadUndergroundPath;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetMarketStreetDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = MARKET_STREET_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Market Street";
                returnData.DoLoadLocation = LoadMarketStreet;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #23
0
        public LocationDefinition GetCemeteryNorthEndDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = CEMETERY_NORTH_END_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Cemetery North End";
                returnData.DoLoadLocation = LoadCemeteryNorthEnd;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetPrisonDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = PRISON_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Prison";
                returnData.DoLoadLocation = LoadPrison;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #25
0
        public LocationDefinition GetForestWildernessDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = FOREST_WILDERNESS_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Ashen Forest Wilderness";
                returnData.DoLoadLocation = LoadForestWilderness;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetTownHallDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = TOWN_HALL_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Town Hall";
                returnData.DoLoadLocation = LoadTownHall;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #27
0
        public LocationDefinition GetEasternForestPathTwoDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = EASTERN_PATH_TWO_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Ashen Forest Eastern Forest Path Two";
                returnData.DoLoadLocation = LoadEasternForestPathTwo;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetHouseDistrictDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = HOUSE_DISTRICT_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "House District";
                returnData.DoLoadLocation = LoadHouseDistrict;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
Beispiel #29
0
        public LocationDefinition GetEasternForestEdgeDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = EASTERN_FOREST_EDGE_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Ashen Forest Eastern Forest Edge";
                returnData.DoLoadLocation = LoadEasternForestEdge;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }
        public LocationDefinition GetMayorsHouseDefinition()
        {
            LocationDefinition returnData  = new LocationDefinition();
            string             locationKey = MAYORS_HOUSE_KEY;

            if (LocationHandler.LocationExists(locationKey))
            {
                returnData = LocationHandler.GetLocation(locationKey);
            }
            else
            {
                returnData.LocationKey    = locationKey;
                returnData.Name           = "Outside the Mayor's House";
                returnData.DoLoadLocation = LoadMayorsHouse;

                LocationHandler.AddLocation(returnData);
            }

            return(returnData);
        }