I'm looking for feedback on how to best implement pathfinding for my game idea.
I've made a small illustration to make it easier for you to understand what I'm talking about:
You're looking at this 2d building from the side. You've got multiple rooms and between the rooms there are doors that can either be locked or open and there are ladders connecting the two floors.
Let's say we now have a character in the building. And he (let's imagine it's a guy) stands in Room 2. To move him you click on him and select where you want him to move. If you click in Room 6 he will try to find a way of getting there and then walk there. In this case he would need to move to Room 3 -> Room 4 -> Room5 -> Room 6 to get there.
I want you to help me with ideas of how to best implement the pathfinding and routing for this kind of game mechanics. Is there any way to adapt the pathfinding behaviour so that it will work with this, or will I be better of by making my own implementation?
It should be possible to create arrays containing information about which rooms are connected to eachother and then implement a routing algorithm for finding possible ways to get to the destination. But I really want to make it as simple (but still good of course) as possible so therefore I will be happy to recieve some feedback from other people.