Exemple #1
0
        public Battle(EncounterDefinition encounterDefinition)
            : this()
        {
            this.encounterDefinition = encounterDefinition;

            foreach (var triggerDefinition in encounterDefinition.Triggers)
            {
                Triggers.Add(new Trigger(triggerDefinition));
            }
        }
Exemple #2
0
        public VictoryScreen(Player player, EncounterDefinition encounterDefinition, Battle battle, IEnumerable<Turn> turns)
        {
            this.player = player;
            this.battle = battle;
            this.encounterDefinition = encounterDefinition;
            this.turns = turns;

            if (!player.CompletedEncounters.Contains(encounterDefinition.Name))
                player.CompletedEncounters.Add(encounterDefinition.Name);
        }
Exemple #3
0
        public EncounterForm(string fileName)
        {
            InitializeComponent();

            this.fileName = fileName;

            using (var reader = XmlReader.Create(fileName))
            {
                encounter = IntermediateSerializer.Deserialize<EncounterDefinition>(reader, Resources.SourcePath + @"Eternia.XnaClient\GameContent\Encounters\");
            }
        }
Exemple #4
0
        public EncounterScreen(Player player, EncounterDefinition encounterDefinition, Battle battle)
        {
            this.player = player;
            this.encounterDefinition = encounterDefinition;
            this.battle = battle;

            battle.Start();

            turns = new List<Turn>();

            abilityButtons = new List<Button>();
            //targettingStrategyButtons = new List<Button>();
            orderQueueButtons = new List<Button>();
            selectedActors = new List<Actor>();
        }
Exemple #5
0
 public SelectPartyScreen(Player player, EncounterDefinition encounterDefinition)
 {
     this.player = player;
     this.encounterDefinition = encounterDefinition;
 }