public CombatOptionsViewModel(PlayerModel player)
        {
            Fighter       = player;
            FighterCombat = player.Combat;
            WeaponTypeModel.setOptions(FighterCombat, player.Equiped.Weapon.WeaponType);
            setupOptions();
            setCombat(WeaponTypeModel.Option1, WeaponTypeModel.Option1Style);

            View = new CombatOptionsView(this);
        }
예제 #2
0
        public FighterViewModel(PlayerModel selectedplayer = null)
        {
            if (selectedplayer == null)
            {
                selectedplayer = new PlayerModel();
            }
            ControlPanel  = new ControlPanelViewModel(player: selectedplayer, cp_mode: "Interactive");
            Name          = selectedplayer.Name;
            Fighter       = selectedplayer;
            FighterCombat = selectedplayer.Combat;
            WeaponTypeModel.setOptions(selectedplayer.Combat, selectedplayer.Equiped.Weapon.WeaponType);
            setupFighter();

            View = new FighterView(this);
        }
 public void setCombat(string combat_style, string attack_type)
 {
     WeaponTypeModel.setCombat(FighterCombat, combat_style, attack_type);
 }