Beispiel #1
0
            public List <Attack> SelectAttacks(Orientation orientation, GroundRelation groundRelation, InputNotation attackInput)
            {
                // TODO: Create a new IEnumerable class to pull out the filtered values in-place.

                List <Attack> filteredAttacks = attacks
                                                .Select <KeyValuePair <string, Attack>, Attack>(kvp => kvp.Value)
                                                .Where(atk => atk.orientation == orientation && atk.groundRelation == groundRelation && atk.input == attackInput)
                                                .ToList();

                return(filteredAttacks);
            }
 public IAttackCallbackObj GroundRelation(GroundRelation groundRelation)
 {
     this.groundRelation = groundRelation;
     return(this);
 }