public override void apply(Cat cat) { Direction catDir = cat.getDirection(); cat.changeDirection(this.dir); this.dir = catDir; dir.changeDirection(); //Console.WriteLine("Hit Arrow"); }
internal void changeDirection(Direction dir) { this.dir = dir; }
public Cat(int x = 0, int y = 0) { this.dir = new Direction(1, 0); this.score = 0; pos = new Position(x, y); }
public Arrow(Direction dir) : base() { this.dir = dir; }