コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();
            KeyPreview = true;

            dialogHandler   = new CombatDialog(this);
            GameMaster.Hero = new Hero();
        }
コード例 #2
0
ファイル: BattleSimulator.cs プロジェクト: kveselits/QuestArc
        /*
         *
         * 1) Get Main Character battle stats. (Item damage, added modifiers from stats/buffs/ailments)
         * 2) Build enemy
         * 3) Present fighting options USING DIALOG
         * a) Character on the TOP LEFT with relevant stats:
         *      - Player Level and Name
         *      - Current HP/Max HP
         *      - Weapon Damage
         * b) Monster on the TOP RIGHT with relevant stats:
         *      - Monster Name
         *      - Current HP/Max HP
         *      - Damage
         * c) On the BOTTOM CENTER should be fight options:
         *      - Fight
         *      - Inventory
         *      - Run
         * 4) Battle till one falls or flees
         *
         * */


        public async Task RandomBattle()
        {
            // Make Random Monster

            // Create Combat Dialog
            CombatDialog dialog = new CombatDialog();
            await dialog.ShowAsync();
        }