• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# BitSits_Framework.PlayerIndexEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中BitSits_Framework.PlayerIndexEventArgs的典型用法代码示例。如果您正苦于以下问题:C# PlayerIndexEventArgs类的具体用法?C# PlayerIndexEventArgs怎么用?C# PlayerIndexEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PlayerIndexEventArgs类属于BitSits_Framework命名空间,在下文中一共展示了PlayerIndexEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: PlayGameMenuEntrySelected

        /// <summary>
        /// Event handler for when the Play Game menu entry is selected.
        /// </summary>
        void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            BitSitsGames.ScoreData.Level = BitSitsGames.ScoreData.Score = 0;

            LoadingScreen.Load(ScreenManager, false, e.PlayerIndex,
                               new GameplayScreen(), new PauseMenuScreen());
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Treasure-Island,代码行数:10,代码来源:MainMenuScreen.cs


示例2: NewGameMenuEntrySelected

        /// <summary>
        /// Event handler for when the Play Game menu entry is selected.
        /// </summary>
        void NewGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            BitSitsGames.ScoreData.CurrentLevel = 0;
            BitSitsGames.ScoreData.PrevScore = 0;

            LoadingScreen.Load(ScreenManager, false, e.PlayerIndex,
                               new GameplayScreen());
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Push-Puzzle,代码行数:11,代码来源:MainMenuScreen.cs


示例3: MusicMenuEntrySelected

        void MusicMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            BitSitsGames.Settings.MusicEnabled = !BitSitsGames.Settings.MusicEnabled;

            if (BitSitsGames.Settings.MusicEnabled) ScreenManager.GameContent.PlayMusic();
            else MediaPlayer.Pause();

            SetMenuEntryText();
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10,代码行数:9,代码来源:OptionsMenuScreen.cs


示例4: SoundEntrySelected

        /// <summary>
        /// Event handler for when the Resolution menu entry is selected.
        /// </summary>
        void SoundEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            BitSitsGames.Settings.SoundEnabled = !BitSitsGames.Settings.SoundEnabled;

            if (BitSitsGames.Settings.SoundEnabled) SoundEffect.MasterVolume = 1;
            else SoundEffect.MasterVolume = 0;

            SetMenuEntryText();
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Push-Puzzle,代码行数:12,代码来源:OptionsMenuScreen.cs


示例5: QuitMenuEntrySelected

        /// <summary>
        /// Event handler for when the Quit Game menu entry is selected.
        /// </summary>
        void QuitMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            if (screen is GameplayScreen)
            LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen(),
                new LevelMenuScreen());

            if (screen is LabScreen)
                LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen());
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:12,代码来源:PauseMenuScreen.cs


示例6: IsFullScreenMenuEntrySelected

        /// <summary>
        /// Event handler for when the Frobnicate menu entry is selected.
        /// </summary>
        void IsFullScreenMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            BitSitsGames.Settings.IsFullScreen = !BitSitsGames.Settings.IsFullScreen;

            ScreenManager.GraphicsDeviceManager.IsFullScreen = BitSitsGames.Settings.IsFullScreen;
            ScreenManager.GraphicsDeviceManager.ApplyChanges();

            SetMenuEntryText();
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10,代码行数:12,代码来源:OptionsMenuScreen.cs


示例7: LoadLevelMenuEntrySelected

        void LoadLevelMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            int i = (int)((MenuEntry)sender).UserData;

            #if !DEBUG
            if (i > BitSitsGames.ScoreData.CurrentLevel) return;
            #endif

            ScreenManager.GameContent.levelIndex = i;
            LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new GameplayScreen());
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:11,代码来源:LevelMenuScreen.cs


示例8: MessageBoxAccepted

        void MessageBoxAccepted(object sender, PlayerIndexEventArgs e)
        {
            if (level.IsLevelUp)
                LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen(),
                    new LevelMenuScreen());

            else if (level.ReloadLevel) ReloadCurrentLevel();
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:8,代码来源:GameplayScreen.cs


示例9: GameOverAccepted

 void GameOverAccepted(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen());
 }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Sign-Line,代码行数:4,代码来源:GameplayScreen.cs


示例10: LabSetupMenuEntrySelected

 void LabSetupMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new LabScreen());
 }
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:4,代码来源:MainMenuScreen.cs


示例11: PlayGameMenuEntrySelected

 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new LevelMenuScreen(), e.PlayerIndex);
 }
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:7,代码来源:MainMenuScreen.cs


示例12: AddEqipment

        public void AddEqipment(object sender, PlayerIndexEventArgs ea)
        {
            EquipmentName en = EquipmentName.beaker;
            if (((MenuEntry)sender).UserData is EquipmentName)
                en = ((EquipmentName)((MenuEntry)sender).UserData);
            else return;

            Equipment e = new Equipment(en, gameContent, world);
            e.body.Position = camera.Position / gameContent.scale;

            if (selectedEq != null)
            {
                selectedEq.isSelected = false; selectedEq.SetMode(editMode, false); selectedEq = null;
            }
            selectedEq = e; selectedEq.isSelected = true; selectedEq.SetMode(editMode, false);
            equipmentAdded = true;

            if (equipments.Count == 0) equipments.Add(e);
            else
            {
                for (int i = 0; i < equipments.Count; i++)
                    if (e.equipName <= equipments[i].equipName)
                    {
                        equipments.Insert(i, e); return;
                    }

                equipments.Add(e);
            }
        }
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:29,代码来源:Level.cs


示例13: NewGameMenuEntrySelected

        void NewGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            BitSitsGames.ScoreData.LoadDefault(GameContent.MaxLevelIndex);

            PlayGameMenuEntrySelected(sender, e);
        }
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:6,代码来源:MainMenuScreen.cs


示例14: ClampEquipment

 public void ClampEquipment(object sender, PlayerIndexEventArgs e)
 {
     if (selectedEq != null)
     {
         selectedEq.isSelected = false;
         selectedEq.isClamped = true; selectedEq.SetMode(editMode, false);
         selectedEq = null;
     }
 }
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:9,代码来源:Level.cs


示例15: ConfirmExitMessageBoxAccepted

 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to exit" message box.
 /// </summary>
 void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
开发者ID:BitSits,项目名称:BitSits-Framework-10,代码行数:8,代码来源:MainMenuScreen.cs


示例16: ClearLAB

        public void ClearLAB(object sender, PlayerIndexEventArgs e)
        {
            if (isLAB)
            {
                if (editMode)
                {
                    selectedEq = null;

                    for (int i = equipments.Count - 1; i >= 0; i--)
                    {
                        equipments[i].Remove(); equipments.Remove(equipments[i]);
                    }
                }
                else
                {
                    for (int i = atoms.Count - 1; i >= 0; i--)
                    {
                        atoms[i].Remove(); atoms.Remove(atoms[i]);
                    }
                }
            }
        }
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:22,代码来源:Level.cs


示例17: LanguageMenuEntrySelected

        /// <summary>
        /// Event handler for when the Language menu entry is selected.
        /// </summary>
        void LanguageMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            currentLanguage = (currentLanguage + 1) % languages.Length;

            SetMenuEntryText();
        }
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:9,代码来源:OptionsMenuScreen.cs


示例18: FrobnicateMenuEntrySelected

        /// <summary>
        /// Event handler for when the Frobnicate menu entry is selected.
        /// </summary>
        void FrobnicateMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            frobnicate = !frobnicate;

            SetMenuEntryText();
        }
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:9,代码来源:OptionsMenuScreen.cs


示例19: ElfMenuEntrySelected

        /// <summary>
        /// Event handler for when the Elf menu entry is selected.
        /// </summary>
        void ElfMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            elf++;

            SetMenuEntryText();
        }
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:9,代码来源:OptionsMenuScreen.cs


示例20: UngulateMenuEntrySelected

        /// <summary>
        /// Event handler for when the Ungulate menu entry is selected.
        /// </summary>
        void UngulateMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            currentUngulate++;

            if (currentUngulate > Ungulate.Llama)
                currentUngulate = 0;

            SetMenuEntryText();
        }
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:12,代码来源:OptionsMenuScreen.cs



注:本文中的BitSits_Framework.PlayerIndexEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Math.BigInteger类代码示例发布时间:2022-05-24
下一篇:
C# Internal.TiffDirEntry类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap