Esempio n. 1
0
        public bool PerformActionOn(Character character, Scenario scenario)
        {
            var hero = character as Hero;

            if (hero == null || !CanPerformAction(character, scenario)) return false;

            return hero.Rest();
        }
Esempio n. 2
0
        public bool PerformActionOn(Character character, Scenario scenario)
        {
            if (!CanPerformAction(character, scenario)) return false;

            scenario.ClearMarkedFields();

            character.UseMovementAction();

            return true;
        }
Esempio n. 3
0
        public bool CanPerformAction(Character character, Scenario scenario)
        {
            var hero = character as Hero;

            if (hero == null || hero.TakenFatigue == 0 || hero.UsedRest || hero.RemainingActions == 0)
            {
                return false;
            }

            return true;
        }
Esempio n. 4
0
        public bool PerformActionOn(Character character, Scenario scenario)
        {
            Hero hero = character as Hero;
            if (hero != null && hero.CanSpendFatigue(1) && !hero.Dead)
            {
                scenario.ClearMarkedFields();
                hero.UseFatigueToMove(1);
            }

            return false;
        }
Esempio n. 5
0
 public bool CanPerformAction(Character character, Scenario scenario)
 {
     Hero hero = character as Hero;
     return (hero != null && hero.CanSpendFatigue(1));
 }
Esempio n. 6
0
 public ScenarioChoosenEvent(object sender, Scenario scenario)
 {
     SelectedScenario = scenario;
 }
Esempio n. 7
0
 public bool CanPerformAction(Character character, Scenario scenario)
 {
     return true;
 }
Esempio n. 8
0
 public bool PerformActionOn(Character character, Scenario scenario)
 {
     GameplayProgress.Instance.GetChooseHeroDialog().Show();
     GameplayProgress.Instance.Scenario.ClearMarkedFields();
     return true;
 }
Esempio n. 9
0
 public bool CanPerformAction(Character character, Scenario scenario)
 {
     return !character.Dead && character.RemainingActions > 0;
 }
Esempio n. 10
0
 public bool PerformActionOn(Character character, Scenario scenario)
 {
     return character.UseAttackAction();
 }