This doesn´t look right. There are no bounding box checks, you´re just checking if the neighbouring tiles are empty and if they are the player is allowed to move. I would suggest storing all unwalkable tiles in an array and check all tiles around you. If there are any unwalkable tiles you do a bounding box check and if there is a collision/intersection you deal with the respons.
After a rethink , I do not get this one. Indeed slick has it's own Box(Bounding) and intersects/contains methods , but , what am I supposed to check?
What I think I need to check:
Check the three nearby tiles (left/right/up/down depending at the direction the player wants to move) and then determine if he is allowed to move onto that direction by checking if
A)All 3 tiles are not blocked
B)the center tile is not blocked and the player does /does not intersect with the 2 others
C)The center tile is blocked
Is this the proper way to do this?