Exactly what every word means, as in your book.
BesideRight next to it: up, down, left or right. Same room.
Diagonally next toCorner to corner, also across a wall.
On or inSitting on it, on it or in it: one of its own squares.
In a room withAnywhere in its room, even on it.
Alone inNobody else in that room.
At the edgeAn outer square.
In a cornerOne of 4 corners.
North-east quarterThe top-right block. A middle row is in none.
4 steps from4 squares, no diagonals. Count through walls and objects.
North of BAny row above B's row.
North and westAny higher row, any column to the left.
2 columns westExactly 2 columns left, any row. 2 rows up: any column.