Exemplo n.º 1
0
 public override void apply(Cat cat)
 {
     if (directionChanger) cat.getDirection().changeDirection();
     cat.getDirection().changePath();
     directionChanger = !directionChanger;
     //Console.WriteLine("Hit Mirror");
 }
Exemplo n.º 2
0
 public override void apply(Cat cat)
 {
     Direction catDir = cat.getDirection();
     cat.changeDirection(this.dir);
     this.dir = catDir;
     dir.changeDirection();
     //Console.WriteLine("Hit Arrow");
 }