Пример #1
0
 public override void Accept(ColVisitor other)
 {
     // Important: at this point we have an BirdGroup
     // Call the appropriate collision reaction
     other.VisitGroup(this);
 }
Пример #2
0
 public override void Accept(ColVisitor other)
 {
     //what is the reaction of the "other" object
     // with the Alien Group
     other.VisitGroup(this);
 }