Пример #1
0
 public override void Accept(ColVisitor other)
 {
     other.VisitGreenAlien(this);
 }
Пример #2
0
 public override void Accept(ColVisitor other)
 {
     // Important: at this point we have an Alien
     // Call the appropriate collision reaction
     other.VisitShieldGrid(this);
 }