public void CollisionWithBO(BasicObject bo, GameBoard board) { if (this.isOnTop(bo)) { Console.Out.WriteLine("collision with box"); board.setGridPositionOpen(this.X, this.Y); bo.setGridPosition(0, 0); bo.setVisible(false); } }
public void CollisionWithBO(BasicObject bo, GameBoard board) { if (this.isOnTop(bo)) { Console.Out.WriteLine("collision with box"); board.setGridPositionOpen(this.X, this.Y); bo.setGridPosition(0, 0); bo.setVisible(false); } }