Inheritance: MoodSwingGUI.MSScreen
Esempio n. 1
0
 public OpenDistrictScreen(MSDistrictScreen.DistrictName name)
 {
     this.name = name;
 }
Esempio n. 2
0
        public static void Init(MSDistrictScreen.DistrictName name)
        {
            StoryEnabled = false;
            VolunteerCenterEnabled = true;
            TowerEnabled = true;
            FirstMDGBranchEnabled = true;
            SecondMDGBranchEnabled = true;
            ThirdMDGBranchEnabled = true;

            if (StoryEnabled)
            {
                timeActiveEvents = new List<MSStoryEvent>();
                eventsToRemove = new List<MSStoryEvent>();

                switch(name)
                {
                    case MSDistrictScreen.DistrictName.FEAR:
                        AddStoryEvent(new District1());
                        FirstMDGBranchEnabled = true;
                        SecondMDGBranchEnabled = false;
                        ThirdMDGBranchEnabled = false;
                        break;
                    case MSDistrictScreen.DistrictName.SADNESS:
                        AddStoryEvent(new District2());
                        FirstMDGBranchEnabled = true;
                        SecondMDGBranchEnabled = true;
                        ThirdMDGBranchEnabled = false;
                        break;
                    case MSDistrictScreen.DistrictName.ANGER:
                        AddStoryEvent(new District3());
                        FirstMDGBranchEnabled = true;
                        SecondMDGBranchEnabled = true;
                        ThirdMDGBranchEnabled = true;
                        break;
                }
            }
        }