Exemple #1
0
    void CreateDefaultEnemyParty()
    {
        EnemyParty = new Party();

        Unit EnemyDefense = UnitLibrary.CreateUnit("Goblin_1");

        EnemyDefense.Profile.Name = "Goblin Defense";

        EnemyParty.AddPartyMember(EnemyDefense);
        EnemyParty.SetAssignment(EnemyDefense, PartyPosition.Defense, EnemyDefense.GetSkill("ShieldUp_1"));

        Unit EnemyAttack = UnitLibrary.CreateUnit("Goblin_1");

        EnemyAttack.Profile.Name = "Goblin Attack";

        EnemyParty.AddPartyMember(EnemyAttack);
        EnemyParty.SetAssignment(EnemyAttack, PartyPosition.Attack);

        Unit EnemySupport = UnitLibrary.CreateUnit("Goblin_1");

        EnemySupport.Profile.Name = "Goblin Support";

        EnemyParty.AddPartyMember(EnemySupport);
        EnemyParty.SetAssignment(EnemySupport, PartyPosition.Support);

        EnemyPartyPanel.AssignedParty = EnemyParty;
    }
        public Tutorial_Combat_01_TrainingDummy(Party playerParty) : base(playerParty)
        {
            EnemyParty = new Party();

            EnemyParty.AddPartyMember(new TrainingDummy(100, 0, 0, "Training Dummy 1"));

            EnemyParty.AddPartyMember(new TrainingDummy(100, 0, 0, "Training Dummy 2"));

            EnemyParty.AddPartyMember(new TrainingDummy(100, 0, 0, "Training Dummy 3", new Dictionary <Item, int>()
            {
                { new Rubbish(), 1 }
            }));

            CombatUI.SetTargetList(EnemyParty.PartyMembers);
        }
Exemple #3
0
    void CreateDefaultPlayerParty()
    {
        PlayerParty = new Party();

        Unit PlayerDefense = UnitLibrary.CreateUnit("TestDefender");

        PlayerParty.AddPartyMember(PlayerDefense);
        PlayerParty.SetAssignment(PlayerDefense, PartyPosition.Defense);

        Unit PlayerAttack = UnitLibrary.CreateUnit("TestAttacker");

        PlayerParty.AddPartyMember(PlayerAttack);
        PlayerParty.SetAssignment(PlayerAttack, PartyPosition.Attack);

        Unit PlayerSupport = UnitLibrary.CreateUnit("TestSupporter");

        PlayerParty.AddPartyMember(PlayerSupport);
        PlayerParty.SetAssignment(PlayerSupport, PartyPosition.Support, PlayerSupport.GetSkill("ManaBolt_1"));

        PlayerPartyPanel.AssignedParty = PlayerParty;
    }
        public async Task <Unit> Handle(CreatePartyCommand request, CancellationToken cancellationToken)
        {
            var party = new Party(request.Name, request.Date);

            foreach (var partyMember in request.PartyMembers)
            {
                party.AddPartyMember(partyMember.Name, partyMember.Email, partyMember.Address);
            }

            _dbContext.Parties.Add(party);
            await _dbContext.SaveChangesAsync(cancellationToken);

            await CreatePairings(party.PartyMembers, cancellationToken);

            return(Unit.Value);
        }
 public Party GenerateEnemyParty()
 {
     Party enemyParty = new Party(true);
     int count = Game1.Random.Next(7) + 1;
     for (int i = 0; i < count; ++i)
         enemyParty.AddPartyMember(ResourceManager.GetNewPartyMember(Area.EnemyNames.Sample()));
     enemyParty.InitPartyBattleLayout(random: true);
     return enemyParty;
 }
 public Party GenerateBossParty()
 {
     Party bossParty = new Party(true);
     bossParty.AddPartyMember(ResourceManager.GetNewPartyMember(Area.BossNames.Sample()));
     bossParty.InitPartyBattleLayout(arrangement: "\n\n0", minSize: 5);
     return bossParty;
 }
        private void restart()
        {
            while (Scene.Current != null)
            {
                Scene.FinishCurrent();
                Scene.UpdateCurrent(new Delta(0.001f));
            }

            Party playerParty = new Party(false);
            playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("marksman")));
            playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("warrior")));
            playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("medic")));
            playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("thief")));

            new Overworld(playerParty, ResourceManager.GetNewArea("forest"));

            Clock.Init(12);
        }