示例#1
0
 public IBehaviors RemoveBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     aBehavior.LinkBehaviors(null);
     fList.Remove(aBehavior);
     return(this);
 }
示例#2
0
 public IBehaviors AddBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     aBehavior.LinkBehaviors(this);
     fList.Add(aBehavior);
     return(this);
 }
示例#3
0
 public IBehaviors BecomeBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     fList.Clear();
     aBehavior.LinkBehaviors(this);
     fList.Add(aBehavior);
     return(this);
 }
示例#4
0
 protected void RemoveBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     AddMissedMessages();
     fListBehaviors.Remove(aBehavior);
 }
示例#5
0
 public void RemoveBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     aBehavior.LinkBehaviors(null);
     fList.Remove(aBehavior);
 }