Hi everybody,
I am not sure if this is the right place. So if it is wrong please move this thread.
Problem:
I want tu use multiple Gamestates that are overlapping themselves. If the user clicks on a button within the Hud and a Hexagon is also within the mouseray both Gamestates would react. But I only want that if a click happens within the HUD ONLY the HUD reacts.
- a HUD with buttons (open Information windows)
- a Map which is clickable (selecting Hexagons)
Questions:
- Should I use a global Handler and pass the instance to all gamestates ? (But how do i determine which gamestate reacted?)
- Should I use several Handlers ? (But how can I select that first the Hudscreen is updated and then the Mapscreen ?)
Regards
Mimic