示例#1
0
        private static List <WorldObject> CreateBasicEmptyWorld(ContentManager content)
        {
            var worldObjects = new List <WorldObject>();
            var startingNode = new StartingNode(new Vector2(100, 100));

            startingNode.InitializeContent(content);

            //  var universityLogic = new BindedLogic(new StartUniversity(), true, "Start\nCollege\n-$20k");
            //  var universityLogic = new BindedLogic(new BlankStory(), true, false, "Story");
            // var getMarried = new BindedLogic(new GetMarried(10000), true, false, "Get\nMarried");
            //  var travelOne = new BindedLogic(new Travel(IslandType.Snow, WorldTransportType.Boat), true, false, "Travel A");
            // var minusCash = new BindedLogic(new ModifyCashStory(10000), hasPassLogic: true);

            //  var universityNode = new BindedLogic(new StartUniversity(), hasPassLogic: true);
            var universityPath = new Node(new Vector2(100, 220), true);

            universityPath.SetBindedLogic(new BindedLogic(new StartUniversity(), hasPassLogic: true));
            universityPath.InitializeContent(content);
            startingNode.AddLinkedNode(universityPath);

            // var careerLogic = new BindedLogic(new StartCareer(), true, "Start\nCareer");
            // var spinToWin = new BindedLogic(new SpinToWin(50000), true, false, "Spin To\nWin\n$50k");
            // var travelTwo = new BindedLogic(new Travel(IslandType.City, WorldTransportType.Boat), true, false, "Travel B");
            // var giveChild = new BindedLogic(new GiveChild(), true, false, "Acquire\nChild");
            //var givePet = new BindedLogic(new GivePet(), true, false, "Get\nPet");
            //var buyHouse = new BindedLogic(new BuyHouse(null), true, false, "Buy house");
            // var takeExam = new BindedLogic(new TakeExam(), true, true, "Take\nExam");
            //var addCash = new BindedLogic(new Nothing(), hasPassLogic: true);
            var careerPath = new Node(new Vector2(245, 100), true);

            //careerPath.SetBindedLogic(addCash);
            careerPath.SetBindedLogic(new BindedLogic(new StartCareer(), hasPassLogic: true));
            careerPath.InitializeContent(content);

            careerPath.AddLinkedNode(universityPath);
            startingNode.AddLinkedNode(careerPath);
            universityPath.AddLinkedNode(careerPath);

            var spinner = new Spinner(new Vector2(400, 100));

            spinner.InitializeContent(content);

            worldObjects.Add(startingNode);
            worldObjects.Add(universityPath);
            worldObjects.Add(careerPath);
            worldObjects.Add(spinner);

            return(worldObjects);
        }
示例#2
0
        private static List<WorldObject> CreateBasicEmptyWorld(ContentManager content)
        {
            var worldObjects = new List<WorldObject>();
            var startingNode = new StartingNode(new Vector2(100, 100));

            startingNode.InitializeContent(content);

            //  var universityLogic = new BindedLogic(new StartUniversity(), true, "Start\nCollege\n-$20k");
            //  var universityLogic = new BindedLogic(new BlankStory(), true, false, "Story");
            // var getMarried = new BindedLogic(new GetMarried(10000), true, false, "Get\nMarried");
            //  var travelOne = new BindedLogic(new Travel(IslandType.Snow, WorldTransportType.Boat), true, false, "Travel A");
               // var minusCash = new BindedLogic(new ModifyCashStory(10000), hasPassLogic: true);

              //  var universityNode = new BindedLogic(new StartUniversity(), hasPassLogic: true);
            var universityPath = new Node(new Vector2(100, 220), true);
            universityPath.SetBindedLogic(new BindedLogic(new StartUniversity(), hasPassLogic: true));
            universityPath.InitializeContent(content);
            startingNode.AddLinkedNode(universityPath);

            // var careerLogic = new BindedLogic(new StartCareer(), true, "Start\nCareer");
            // var spinToWin = new BindedLogic(new SpinToWin(50000), true, false, "Spin To\nWin\n$50k");
            // var travelTwo = new BindedLogic(new Travel(IslandType.City, WorldTransportType.Boat), true, false, "Travel B");
            // var giveChild = new BindedLogic(new GiveChild(), true, false, "Acquire\nChild");
            //var givePet = new BindedLogic(new GivePet(), true, false, "Get\nPet");
            //var buyHouse = new BindedLogic(new BuyHouse(null), true, false, "Buy house");
            // var takeExam = new BindedLogic(new TakeExam(), true, true, "Take\nExam");
            //var addCash = new BindedLogic(new Nothing(), hasPassLogic: true);
            var careerPath = new Node(new Vector2(245, 100), true);
            //careerPath.SetBindedLogic(addCash);
            careerPath.SetBindedLogic(new BindedLogic(new StartCareer(), hasPassLogic: true));
            careerPath.InitializeContent(content);

            careerPath.AddLinkedNode(universityPath);
            startingNode.AddLinkedNode(careerPath);
            universityPath.AddLinkedNode(careerPath);

            var spinner = new Spinner(new Vector2(400, 100));
            spinner.InitializeContent(content);

            worldObjects.Add(startingNode);
            worldObjects.Add(universityPath);
            worldObjects.Add(careerPath);
            worldObjects.Add(spinner);

            return worldObjects;
        }