protected AllyObjectiveCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity, byte victoryPoints, byte printedWillpower, byte printedAttack, byte printedDefense, byte printedHitPoints) : base(title, cardSet, cardNumber, encounterSet, quantity, victoryPoints) { this.PrintedWillpower = printedWillpower; this.PrintedAttack = printedAttack; this.PrintedDefense = printedDefense; this.PrintedHitPoints = printedHitPoints; }
protected EnemyCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity, byte printedThreat, byte engagementCost, byte printedAttack, byte printedDefense, byte printedHitPoints, byte victoryPoints) : base(CardType.Enemy, title, cardSet, cardNumber, encounterSet, quantity, printedThreat) { this.EngagementCost = engagementCost; this.PrintedAttack = printedAttack; this.PrintedDefense = printedDefense; this.PrintedHitPoints = printedHitPoints; this.VictoryPoints = victoryPoints; }
private static HashSet <Pokemon> PokemonInArea(EncounterSet area) { var inArea = new HashSet <Pokemon>(); foreach (var enc in area.Encounters) { inArea.Add(enc.Pokemon1); } return(inArea); }
public ZoneEncounters(byte[] data) { Data = data; using (BinaryReader br = new BinaryReader(new MemoryStream(data))) { Header = br.ReadBytes(0x10); Encounters = new EncounterSet[(int)(br.BaseStream.Length - br.BaseStream.Position)/4]; for (int i = 0; i < Encounters.Length; i++) Encounters[i] = new EncounterSet(br.ReadBytes(4)); } }
public List <MonsterBattler> SetupMonsters(EncounterSet encounterSet) { var monsters = encounterSet.BuildMonsters(); foreach (var monster in monsters) { var tf = monster.RectTransform; tf.SetParent(MonsterPanel, false); tf.localRotation = Quaternion.Euler(-55, 0, 0); tf.localPosition = new Vector3(0, 0, 0); } MonsterLayoutManager.SetMonsters(monsters); MonsterLayoutManager.SetLayout(encounterSet.Layout); MonsterLayoutManager.OrderRects(); return(monsters); }
public void BeginBattle(EncounterSet encounter, Sprite backgroundSprite = null, bool playAnimation = false) { _encounterSet = encounter; PlayerController.Instance.PauseGame(); if (backgroundSprite == null) { backgroundSprite = GetPlayerGroundSprite(); } battleCanvas = Instantiate(BattleCanvasPrefab).GetComponent <BattleCanvas>(); battleCanvas.SetupBattleground(backgroundSprite); Party = battleCanvas.SetupParty(PlayerController.Instance.Party); Enemies = battleCanvas.SetupMonsters(encounter); Party.ForEach((partyMember) => { partyMember.UpdateAnimator(); }); var bgm = encounter.bgmOverride != null ? encounter.bgmOverride : MapSettings.Instance.BattleBgm; MapSettings.Instance.PauseBgm(); battleCanvas.StartBattleMusic(bgm); Battle = Task.Run(BattleLoop, CancelBattle.Token); }
protected AttachableObjectiveCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity, byte victoryPoints) : base(title, cardSet, cardNumber, encounterSet, quantity, victoryPoints) { }
protected EncounterCardBase(CardType printedCardType, string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity) : base(printedCardType, title, cardSet, cardNumber) { this.EncounterSet = encounterSet; this.Quantity = quantity; }
protected ThreateningCardBase(CardType printedCardType, string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity, byte printedThreat) : base(printedCardType, title, cardSet, cardNumber, encounterSet, quantity) { this.PrintedThreat = printedThreat; }
protected LocationCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity, byte printedThreat, byte questPoints, byte victoryPoints) : base(CardType.Location, title, cardSet, cardNumber, encounterSet, quantity, printedThreat) { this.QuestPoints = questPoints; this.VictoryPoints = victoryPoints; }
protected ObjectiveCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity, byte victoryPoints) : base(CardType.Objective, title, cardSet, cardNumber, encounterSet, quantity) { this.VictoryPoints = victoryPoints; }
protected void AddEncounterSet(EncounterSet encounterSet) { encounterSets.Add(encounterSet); }
protected TreasureCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte printedCost) : base(CardType.Treasure, title, cardSet, cardNumber, Sphere.Neutral, printedCost) { }
protected AttachableTreacheryCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity) : base(title, cardSet, cardNumber, encounterSet, quantity) { }
public SelectableEncounterSet(EncounterSet encounterSet) { EncounterSet = encounterSet; }
public IEnumerable <string> EncounterSetNames() { return(EncounterSet.All().Select(x => x.Name).ToList()); }
protected TreacheryCardBase(string title, CardSet cardSet, uint cardNumber, EncounterSet encounterSet, byte quantity) : base(CardType.Treachery, title, cardSet, cardNumber, encounterSet, quantity) { }