CheckTile system?

Dear People,

I’m working on a RPG game and everything is going well but for one thing,

i need a movement for my character, not a ordinairy one though,

what i need is as soon as the char walks upon a tile it needs to check if its (“blocked” or “a door”) example

water, if the char walks approach water it needs to check if the tile is water

So basicly what i need is a movement system will “walls”

Can someone give me an example?

Thanks in advance

Yours,
Salitry