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