예제 #1
0
 public override bool Accept(GameVisitor visitor)
 {
     visitor.Visit(this);
     Snake?.Accept(visitor);
     Food?.Accept(visitor);
     return(true);
 }
예제 #2
0
 public override bool Accept(GameVisitor visitor)
 {
     visitor.Visit(this);
     return(true);
 }
예제 #3
0
 public abstract bool Accept(GameVisitor visitor);