Beispiel #1
0
 public ActionNotice(Object subject, NoticeVerb verb, INoticePredicate predicate)
     : base(subject, verb.ToString(), predicate == null ? null : new List <INoticePredicate>())
 {
     if (predicate != null)
     {
         Predicates.Add(predicate);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Constructor for notices with a single predicate.
 /// </summary>
 /// <param name="subject"></param>
 /// <param name="verb"></param>
 /// <param name="predicate"></param>
 public GameActionNotice(Object subject, string verb, INoticePredicate predicate)
     : this(subject, verb, predicate == null ? null : new List <INoticePredicate>())
 {
     if (predicate != null)
     {
         Predicates.Add(predicate);
     }
 }