public IdlePlayer(bool isLeft) :base(false, isLeft) { Level = 1; Job = ConfigDatas.JobConfig.Indexer.NewBie; DeckCard[] cds = DeckBook.GetDeckByName("test", Level); Cards = new ActiveCards(cds); InitBase(); }
internal ActiveCards GetCopy() { ActiveCards tcards = new ActiveCards(); tcards.cards = new List<ActiveCard>(); foreach (ActiveCard activeCard in cards) { tcards.cards.Add(new ActiveCard(activeCard.CardId, activeCard.Level, 0)); } return tcards; }
public ActiveCards GetCopy() { ActiveCards tcards = new ActiveCards(); tcards.cards = new List <ActiveCard>(); foreach (ActiveCard activeCard in cards) { tcards.cards.Add(new ActiveCard(activeCard.CardId, activeCard.Level, 0)); } return(tcards); }
public MirrorPlayer(int id, ActiveCards cpcards, bool isLeft) : base(false, isLeft) { PeopleId = id; PeopleConfig peopleConfig = ConfigData.GetPeopleConfig(id); Level = peopleConfig.Level; Job = UserProfile.InfoBasic.Job; EnergyGenerator.SetRateNpc(peopleConfig); Cards = cpcards.GetCopy(); InitBase(); }
public AIPlayer(int id, string deck, bool isLeft, int rlevel, bool isPlayerControl) : base(isPlayerControl, isLeft) { PeopleId = id; Level = rlevel; PeopleConfig peopleConfig = ConfigData.GetPeopleConfig(id); Level = peopleConfig.Level; Job = peopleConfig.Job; EnergyGenerator.SetRateNpc(peopleConfig); DeckCard[] cds = DeckBook.GetDeckByName(deck, Level); Cards = new ActiveCards(cds); // PlayerAttr attr = new PlayerAttr(); // attr.ModifyMonsterData(HeroData); InitBase(); }
public RandomPlayer(int id, bool isLeft, bool isplayerControl) : base(isplayerControl, isLeft) { PeopleId = id; PeopleConfig peopleConfig = ConfigData.GetPeopleConfig(id); Level = peopleConfig.Level; Job = UserProfile.InfoBasic.Job; EnergyGenerator.SetRateNpc(peopleConfig); DeckCard[] cd = new DeckCard[GameConstants.DeckCardCount]; for (int i = 0; i < GameConstants.DeckCardCount; i++) { cd[i] = new DeckCard(CardConfigManager.GetRandomCard(0, -1), 1, 0); } Cards = new ActiveCards(cd); InitBase(); }
public HumanPlayer(bool isLeft) : base(true, isLeft) { PeopleId = 0; Level = UserProfile.InfoBasic.Level; Job = UserProfile.InfoBasic.Job; DeckCard[] cd = new DeckCard[GameConstants.DeckCardCount]; for (int i = 0; i < GameConstants.DeckCardCount; i++) { int id = UserProfile.InfoCard.SelectedDeck.GetCardAt(i); cd[i] = UserProfile.InfoCard.GetDeckCardById(id); } Cards = new ActiveCards(cd); int[] energyRate = {0, 0, 0}; CalculateEquipAndSkill(UserProfile.InfoEquip.Equipon, energyRate); EnergyGenerator.SetRate(energyRate, UserProfile.InfoBasic.Job); InitBase(); }