card view from prompts
Posted: 20 Jan 2017, 00:55
I made changes to the prompt code to show more information about the spell
or ability that caused a prompt. I also made changes to the gui interface
and the desktop gui to record this spell or ability (view) and to show its
card (view) when the mouse is over the prompt pane. This required more
changes to the code than I would have liked because the spell or ability has
to be dragged from the player code through the input code all the way to the
view code. I had to add new methods fairly high up in the class hierarchy
- for IGuiGame - showPromptMessage(playerView, message, sav)
- for InputBase - showMessage(message, sav)
or ability that caused a prompt. I also made changes to the gui interface
and the desktop gui to record this spell or ability (view) and to show its
card (view) when the mouse is over the prompt pane. This required more
changes to the code than I would have liked because the spell or ability has
to be dragged from the player code through the input code all the way to the
view code. I had to add new methods fairly high up in the class hierarchy
- for IGuiGame - showPromptMessage(playerView, message, sav)
- for InputBase - showMessage(message, sav)