Example #1
0
        ///<summary>
        ///Determines a player's basic encounter contribution.
        ///</summary>
        ///<param name="encounter">The current encounter.</param>
        ///<returns>Player's attack contribution.</returns>
        public virtual int GetEncounterPowerContribution(Encounter encounter)
        {
            EncounterPlayerContext context = encounter.GetPlayerContext(this);

            if (RacePowerEnabled)
            {
                return(AlienRace.GetEncounterPowerContribution(this, encounter, context));
            }
            else
            {
                return(context.ShipCount);
            }
        }
Example #2
0
        public override int GetEncounterPowerContribution(BasePlayer player, Encounter encounter, EncounterPlayerContext context)
        {
            int contribution = 0;

            contribution += context.ShipCount;

            AttackEncounterCard attackCard = context.EncounterCard as AttackEncounterCard;

            if (attackCard != null)
            {
                contribution += GetTriplerAttackValue(player, encounter, attackCard);
            }

            return(contribution);
        }
Example #3
0
        /*
         * public static abstract PowerTriggerPoint RaceAbilityTriggerPoint;
         * public static abstract PowerTriggerPoint FlareSuperTriggerPoint;
         * public static abstract PowerTriggerPoint FlareWildTriggerPoint;
         */

        //public GamePhase ValidPhasesForPower;

        public virtual int GetEncounterPowerContribution(BasePlayer player, Encounter encounter, EncounterPlayerContext context)
        {
            int contribution = 0;

            //EncounterPlayerContext context = encounter.GetPlayerContext(player);

            contribution += context.ShipCount;

            if (context.EncounterCard is AttackEncounterCard)
            {
                contribution += ((AttackEncounterCard)context.EncounterCard).Value;
            }

            return(contribution);
        }