Exemplo n.º 1
0
        protected internal override void Deactivate(Player player)
        {
            Event <MapEnterEventArgs> .Handler -= MapScreenEntered;
            Event <MapDrawEventArgs> .Handler  -= MapScreenDraw;
            Event <MapExitEventArgs> .Handler  -= MapScreenExited;

            if (questionMarkText != null)
            {
                questionMarkText.Dispose();
                questionMarkText = null;
            }

            base.Deactivate(player);
        }
Exemplo n.º 2
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Options Screen");
         foreach (var current in m_optionsArray)
         {
             current.Dispose();
         }
         m_optionsArray.Clear();
         m_optionsArray = null;
         m_bgSprite.Dispose();
         m_bgSprite            = null;
         m_optionsTitle        = null;
         m_changeControlsTitle = null;
         m_backToMenuObj       = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_cancelText.Dispose();
         m_cancelText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_optionsBar.Dispose();
         m_optionsBar     = null;
         m_selectedOption = null;
         m_quickDropText.Dispose();
         m_quickDropText       = null;
         m_quickDropObj        = null;
         m_enableSteamCloudObj = null;
         m_reduceQualityObj    = null;
         base.Dispose();
     }
 }
Exemplo n.º 3
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Get Item Screen");
         m_continueText.Dispose();
         m_continueText = null;
         m_levelUpBGImage.Dispose();
         m_levelUpBGImage = null;
         var levelUpParticles = m_levelUpParticles;
         for (var i = 0; i < levelUpParticles.Length; i++)
         {
             var spriteObj = levelUpParticles[i];
             spriteObj.Dispose();
         }
         Array.Clear(m_levelUpParticles, 0, m_levelUpParticles.Length);
         m_levelUpParticles = null;
         m_buildUpSound     = null;
         m_itemSprite.Dispose();
         m_itemSprite = null;
         m_itemFoundSprite.Dispose();
         m_itemFoundSprite = null;
         m_itemFoundText.Dispose();
         m_itemFoundText = null;
         m_tripStat1.Dispose();
         m_tripStat2.Dispose();
         m_tripStat1 = null;
         m_tripStat2 = null;
         m_tripStat1FoundText.Dispose();
         m_tripStat2FoundText.Dispose();
         m_tripStat1FoundText = null;
         m_tripStat2FoundText = null;
         base.Dispose();
     }
 }
Exemplo n.º 4
0
        public override void PassInData(List <object> objList)
        {
            m_backBufferOpacity = (float)objList[0];
            m_fadeInSpeed       = (float)objList[1];
            m_textDuration      = (float)objList[2];
            m_typewriteText     = (bool)objList[3];
            var textObj = objList[4] as TextObj;

            if (m_text != null)
            {
                m_text.Dispose();
                m_text = null;
            }
            m_text = (textObj.Clone() as TextObj);
            m_loadEndingAfterward = (bool)objList[5];
        }
Exemplo n.º 5
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_tutorialText.Dispose();
         m_tutorialText = null;
         m_waypointList.Clear();
         m_waypointList = null;
         m_creditsText.Dispose();
         m_creditsText = null;
         m_creditsTitleText.Dispose();
         m_creditsTitleText = null;
         Array.Clear(m_tutorialTextList, 0, m_tutorialTextList.Length);
         Array.Clear(m_tutorialControllerTextList, 0, m_tutorialControllerTextList.Length);
         Array.Clear(m_creditsTextTitleList, 0, m_creditsTextTitleList.Length);
         Array.Clear(m_creditsTextList, 0, m_creditsTextList.Length);
         m_tutorialTextList           = null;
         m_creditsTextTitleList       = null;
         m_creditsTextList            = null;
         m_tutorialControllerTextList = null;
         m_door         = null;
         m_doorSprite   = null;
         m_diary        = null;
         m_speechBubble = null;
         base.Dispose();
     }
 }
Exemplo n.º 6
0
 private void InitializeFemaleNameArray()
 {
     FemaleNameArray = new List <string>();
     using (var streamReader = new StreamReader("Content\\HeroineNames.txt"))
     {
         var spriteFont = Content.Load <SpriteFont>("Fonts\\Junicode");
         SpriteFontArray.SpriteFontList.Add(spriteFont);
         var textObj = new TextObj(spriteFont);
         while (!streamReader.EndOfStream)
         {
             var text = streamReader.ReadLine();
             var flag = false;
             try
             {
                 textObj.Text = text;
             }
             catch
             {
                 flag = true;
             }
             if (!text.Contains("//") && !flag)
             {
                 FemaleNameArray.Add(text);
             }
         }
         if (FemaleNameArray.Count < 1)
         {
             FemaleNameArray.Add("Jenny");
             FemaleNameArray.Add("Shanoa");
             FemaleNameArray.Add("Chun Li");
         }
         textObj.Dispose();
         SpriteFontArray.SpriteFontList.Clear();
     }
 }
Exemplo n.º 7
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         foreach (var current in m_rainFG)
         {
             current.Dispose();
         }
         m_rainFG.Clear();
         m_rainFG    = null;
         m_mountain1 = null;
         m_mountain2 = null;
         if (m_rainSFX != null)
         {
             m_rainSFX.Dispose();
         }
         m_rainSFX = null;
         m_tree1   = null;
         m_tree2   = null;
         m_tree3   = null;
         m_fern1   = null;
         m_fern2   = null;
         m_fern3   = null;
         m_introText.Dispose();
         m_introText = null;
         base.Dispose();
     }
 }
Exemplo n.º 8
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Enchantress Screen");
         if (m_rainSound != null)
         {
             m_rainSound.Dispose();
         }
         m_rainSound = null;
         m_enchantressUI.Dispose();
         m_enchantressUI = null;
         m_equipmentDescriptionText.Dispose();
         m_equipmentDescriptionText = null;
         m_selectionIcon.Dispose();
         m_selectionIcon = null;
         m_equipmentTitleText.Dispose();
         m_equipmentTitleText = null;
         m_activeIconArray    = null;
         foreach (var current in m_masterIconArray)
         {
             for (var i = 0; i < current.Length; i++)
             {
                 current[i].Dispose();
                 current[i] = null;
             }
             Array.Clear(current, 0, current.Length);
         }
         m_masterIconArray.Clear();
         m_masterIconArray = null;
         m_descriptionText.Dispose();
         m_descriptionText = null;
         m_unlockCostContainer.Dispose();
         m_unlockCostContainer = null;
         m_instructionsText.Dispose();
         m_instructionsText = null;
         m_instructionsTitleText.Dispose();
         m_instructionsTitleText = null;
         m_equippedIcon.Dispose();
         m_equippedIcon = null;
         Player         = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_cancelText.Dispose();
         m_cancelText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_playerMoney    = null;
         foreach (var current2 in m_newIconList)
         {
             current2.Dispose();
         }
         m_newIconList.Clear();
         m_newIconList = null;
         base.Dispose();
     }
 }
Exemplo n.º 9
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_text.Dispose();
         m_text = null;
         base.Dispose();
     }
 }
Exemplo n.º 10
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_playerShrug.Dispose();
         m_playerShrug = null;
         m_text.Dispose();
         m_text = null;
         base.Dispose();
     }
 }
Exemplo n.º 11
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         LevelText.Dispose();
         LevelText = null;
         m_coinIcon.Dispose();
         m_coinIcon = null;
         base.Dispose();
     }
 }
Exemplo n.º 12
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         foreach (var current in DoorList)
         {
             current.Dispose();
         }
         DoorList.Clear();
         DoorList = null;
         foreach (var current2 in TerrainObjList)
         {
             current2.Dispose();
         }
         TerrainObjList.Clear();
         TerrainObjList = null;
         foreach (var current3 in GameObjList)
         {
             current3.Dispose();
         }
         GameObjList.Clear();
         GameObjList = null;
         foreach (var current4 in EnemyList)
         {
             current4.Dispose();
         }
         EnemyList.Clear();
         EnemyList = null;
         foreach (var current5 in BorderList)
         {
             current5.Dispose();
         }
         BorderList.Clear();
         BorderList = null;
         BGRender   = null;
         LinkedRoom = null;
         foreach (var current6 in TempEnemyList)
         {
             current6.Dispose();
         }
         TempEnemyList.Clear();
         TempEnemyList = null;
         Player        = null;
         m_fairyChestText.Dispose();
         m_fairyChestText = null;
         m_pauseBG.Dispose();
         m_pauseBG = null;
         m_indexText.Dispose();
         m_indexText = null;
         m_roomInfoText.Dispose();
         m_roomInfoText = null;
         base.Dispose();
     }
 }
Exemplo n.º 13
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Skill Screen");
         m_titleText.Dispose();
         m_titleText = null;
         m_bg.Dispose();
         m_bg = null;
         m_cloud1.Dispose();
         m_cloud1 = null;
         m_cloud2.Dispose();
         m_cloud2 = null;
         m_cloud3.Dispose();
         m_cloud3 = null;
         m_cloud4.Dispose();
         m_cloud4 = null;
         m_cloud5.Dispose();
         m_cloud5 = null;
         m_continueText.Dispose();
         m_continueText = null;
         m_toggleIconsText.Dispose();
         m_toggleIconsText = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_dialoguePlate.Dispose();
         m_dialoguePlate = null;
         m_selectionIcon.Dispose();
         m_selectionIcon = null;
         m_impactEffectPool.Dispose();
         m_impactEffectPool = null;
         m_manor.Dispose();
         m_manor    = null;
         m_shakeObj = null;
         m_playerMoney.Dispose();
         m_playerMoney = null;
         m_coinIcon.Dispose();
         m_coinIcon         = null;
         m_skillCurrent     = null;
         m_skillCost        = null;
         m_skillCostBG      = null;
         m_skillDescription = null;
         m_inputDescription = null;
         m_skillUpgrade     = null;
         m_skillLevel       = null;
         m_skillIcon        = null;
         m_skillTitle       = null;
         m_descriptionDivider.Dispose();
         m_descriptionDivider = null;
         base.Dispose();
     }
 }
Exemplo n.º 14
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing CDG Splash Screen");
         m_logo.Dispose();
         m_logo = null;
         m_loadingText.Dispose();
         m_loadingText = null;
         base.Dispose();
     }
 }
Exemplo n.º 15
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_enemyNameText.Dispose();
         m_enemyNameText = null;
         m_enemyLevelText.Dispose();
         m_enemyLevelText = null;
         m_enemyHPBar.Dispose();
         m_enemyHPBar = null;
         base.Dispose();
     }
 }
Exemplo n.º 16
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Map Screen");
         if (m_mapDisplay != null)
         {
             m_mapDisplay.Dispose();
         }
         m_mapDisplay = null;
         if (m_legend != null)
         {
             m_legend.Dispose();
         }
         m_legend = null;
         if (m_playerIcon != null)
         {
             m_playerIcon.Dispose();
         }
         m_playerIcon = null;
         if (m_teleporterList != null)
         {
             Array.Clear(m_teleporterList, 0, m_teleporterList.Length);
         }
         m_teleporterList = null;
         if (m_titleText != null)
         {
             m_titleText.Dispose();
         }
         m_titleText = null;
         if (m_continueText != null)
         {
             m_continueText.Dispose();
         }
         m_continueText = null;
         if (m_recentreText != null)
         {
             m_recentreText.Dispose();
         }
         m_recentreText = null;
         if (m_navigationText != null)
         {
             m_navigationText.Dispose();
         }
         m_navigationText = null;
         m_alzheimersQuestionMarks.Dispose();
         m_alzheimersQuestionMarks = null;
         base.Dispose();
     }
 }
Exemplo n.º 17
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_player = null;
         m_lockSprite.Dispose();
         m_lockSprite = null;
         m_errorSprite.Dispose();
         m_errorSprite = null;
         m_timerText.Dispose();
         m_timerText = null;
         base.Dispose();
     }
 }
Exemplo n.º 18
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_bossChest = null;
         m_bossDivider.Dispose();
         m_bossDivider = null;
         m_bossTitle1.Dispose();
         m_bossTitle1 = null;
         m_bossTitle2.Dispose();
         m_bossTitle2 = null;
         base.Dispose();
     }
 }
Exemplo n.º 19
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_songTitle.Dispose();
         m_songTitle = null;
         m_nowPlayingText.Dispose();
         m_nowPlayingText = null;
         m_jukeBox        = null;
         Array.Clear(m_songList, 0, m_songList.Length);
         Array.Clear(m_songTitleList, 0, m_songTitleList.Length);
         m_songTitleList = null;
         m_songList      = null;
         m_speechBubble  = null;
         base.Dispose();
     }
 }
Exemplo n.º 20
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         var abilitiesSpriteArray = m_abilitiesSpriteArray;
         for (var i = 0; i < abilitiesSpriteArray.Length; i++)
         {
             var spriteObj = abilitiesSpriteArray[i];
             spriteObj.Dispose();
         }
         Array.Clear(m_abilitiesSpriteArray, 0, m_abilitiesSpriteArray.Length);
         m_abilitiesSpriteArray = null;
         m_coin.Dispose();
         m_coin = null;
         m_mpBar.Dispose();
         m_mpBar = null;
         m_hpBar.Dispose();
         m_hpBar = null;
         m_playerLevelText.Dispose();
         m_playerLevelText = null;
         m_goldText.Dispose();
         m_goldText = null;
         m_hpText.Dispose();
         m_hpText = null;
         m_mpText.Dispose();
         m_mpText = null;
         m_hpBarContainer.Dispose();
         m_hpBarContainer = null;
         m_mpBarContainer.Dispose();
         m_mpBarContainer = null;
         m_specialItemIcon.Dispose();
         m_specialItemIcon = null;
         m_spellIcon.Dispose();
         m_spellIcon = null;
         m_spellCost.Dispose();
         m_spellCost = null;
         m_iconHolder1.Dispose();
         m_iconHolder1 = null;
         m_iconHolder2.Dispose();
         m_iconHolder2 = null;
         base.Dispose();
     }
 }
Exemplo n.º 21
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_bossChest = null;
         m_bossDivider.Dispose();
         m_bossDivider = null;
         m_bossTitle1.Dispose();
         m_bossTitle1 = null;
         m_bossTitle2.Dispose();
         m_bossTitle2 = null;
         foreach (var current in m_rainFG)
         {
             current.Dispose();
         }
         m_rainFG.Clear();
         m_rainFG = null;
         base.Dispose();
     }
 }
Exemplo n.º 22
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Loading Screen");
         m_loadingText.Dispose();
         m_loadingText = null;
         m_levelToLoad = null;
         m_gateSprite.Dispose();
         m_gateSprite = null;
         m_effectPool.Dispose();
         m_effectPool = null;
         m_blackTransitionIn.Dispose();
         m_blackTransitionIn = null;
         m_blackScreen.Dispose();
         m_blackScreen = null;
         m_blackTransitionOut.Dispose();
         m_blackTransitionOut = null;
         base.Dispose();
     }
 }
Exemplo n.º 23
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Title Screen");
         m_godRayTexture.Dispose();
         m_godRayTexture = null;
         m_bg.Dispose();
         m_bg = null;
         m_logo.Dispose();
         m_logo = null;
         m_castle.Dispose();
         m_castle = null;
         m_smallCloud1.Dispose();
         m_smallCloud2.Dispose();
         m_smallCloud3.Dispose();
         m_smallCloud4.Dispose();
         m_smallCloud5.Dispose();
         m_smallCloud1 = null;
         m_smallCloud2 = null;
         m_smallCloud3 = null;
         m_smallCloud4 = null;
         m_smallCloud5 = null;
         m_largeCloud1.Dispose();
         m_largeCloud1 = null;
         m_largeCloud2.Dispose();
         m_largeCloud2 = null;
         m_largeCloud3.Dispose();
         m_largeCloud3 = null;
         m_largeCloud4.Dispose();
         m_largeCloud4 = null;
         m_pressStartText.Dispose();
         m_pressStartText = null;
         m_pressStartText2.Dispose();
         m_pressStartText2 = null;
         m_copyrightText.Dispose();
         m_copyrightText = null;
         m_versionNumber.Dispose();
         m_versionNumber = null;
         m_titleText.Dispose();
         m_titleText = null;
         m_profileCard.Dispose();
         m_profileCard = null;
         m_optionsIcon.Dispose();
         m_optionsIcon = null;
         m_creditsIcon.Dispose();
         m_creditsIcon = null;
         m_profileCardKey.Dispose();
         m_profileCardKey = null;
         m_optionsKey.Dispose();
         m_optionsKey = null;
         m_creditsKey.Dispose();
         m_creditsKey = null;
         m_crown.Dispose();
         m_crown = null;
         m_profileSelectKey.Dispose();
         m_profileSelectKey = null;
         m_dlcIcon.Dispose();
         m_dlcIcon    = null;
         m_seagullCue = null;
         base.Dispose();
     }
 }
Exemplo n.º 24
0
 private void InitializeNameArray()
 {
     Game.NameArray = new List<string>();
     using (StreamReader streamReader = new StreamReader("Content\\HeroNames.txt"))
     {
         SpriteFont spriteFont = base.Content.Load<SpriteFont>("Fonts\\Junicode");
         SpriteFontArray.SpriteFontList.Add(spriteFont);
         TextObj textObj = new TextObj(spriteFont);
         while (!streamReader.EndOfStream)
         {
             string text = streamReader.ReadLine();
             bool flag = false;
             try
             {
                 textObj.Text = text;
             }
             catch
             {
                 flag = true;
             }
             if (!text.Contains("//") && !flag)
             {
                 Game.NameArray.Add(text);
             }
         }
         if (Game.NameArray.Count < 1)
         {
             Game.NameArray.Add("Lee");
             Game.NameArray.Add("Charles");
             Game.NameArray.Add("Lancelot");
         }
         textObj.Dispose();
         SpriteFontArray.SpriteFontList.Clear();
     }
 }