示例#1
0
        /// <summary>
        /// Tells whether a set of MoveAffectionTypes has any of the flags in another MoveAffectionTypes set.
        /// </summary>
        /// <param name="moveAffectionTypes">The MoveAffectionTypes value.</param>
        /// <param name="moveAffectionTypesFlags">The flags to test.</param>
        /// <returns>true if any of the flags in moveAffectionTypes are in moveAffectionTypesFlags, otherwise false.</returns>
        public static bool MoveAffectionTypesHasFlag(Enumerations.MoveAffectionTypes moveAffectionTypes,
                                                     Enumerations.MoveAffectionTypes moveAffectionTypesFlags)
        {
            Enumerations.MoveAffectionTypes flags = (moveAffectionTypes & moveAffectionTypesFlags);

            return(flags != 0);
        }
示例#2
0
 public MoveActionData(CroppedTexture2D icon, string description, Enumerations.MoveResourceTypes resourceType,
                       float resourceCost, Enumerations.CostDisplayTypes costDisplayType, Enumerations.MoveAffectionTypes moveAffectionType,
                       Enumerations.EntitySelectionType selectionType, bool usesCharge, Enumerations.HeightStates[] heightsAffected,
                       params Enumerations.EntityTypes[] otherEntTypes)
 {
     Icon              = icon;
     Description       = description;
     ResourceType      = resourceType;
     ResourceCost      = resourceCost;
     CostDisplayType   = costDisplayType;
     MoveAffectionType = moveAffectionType;
     SelectionType     = selectionType;
     HeightsAffected   = heightsAffected;
     UsesCharge        = usesCharge;
     OtherEntTypes     = otherEntTypes;
 }