Hello again,
Sorry to waste your time with this amateur questions on architecture, but I seem to be a little confused with the View classes.
A HumanView is essentially what will be present when the player is running in game right? Yet the Teapot Wars has a MainMenuView.
Please correct me if i'm wrong, but essentially do we create view for every screen we will have, MainMenu, NewCharacter, Credits, Game each with it's own response to messages and processes etc etc. And then IScreenElements will define things like, MainMenuTable, Inventory, Titlebar.. etc
and then we simply load the view we want in the game logic based on the state of the game? Which also brings me to my second confusement, why are we storing all the views in a list and then updating them if we only really need to show one at a time? (Well unless we including the AI View).
If the above doesn't make sense as to what i'm trying to get at, then i'll attempt to redefine my question, essentially I just want to know how Views should be working in game, alongside the states and logic, I don't quite follow.
Thanks in advance
Edit: In the view classes wouldn't it be possible to load in an XML file to set the UI style and appearance ?
Sorry to waste your time with this amateur questions on architecture, but I seem to be a little confused with the View classes.
A HumanView is essentially what will be present when the player is running in game right? Yet the Teapot Wars has a MainMenuView.
Please correct me if i'm wrong, but essentially do we create view for every screen we will have, MainMenu, NewCharacter, Credits, Game each with it's own response to messages and processes etc etc. And then IScreenElements will define things like, MainMenuTable, Inventory, Titlebar.. etc
and then we simply load the view we want in the game logic based on the state of the game? Which also brings me to my second confusement, why are we storing all the views in a list and then updating them if we only really need to show one at a time? (Well unless we including the AI View).
If the above doesn't make sense as to what i'm trying to get at, then i'll attempt to redefine my question, essentially I just want to know how Views should be working in game, alongside the states and logic, I don't quite follow.
Thanks in advance
Edit: In the view classes wouldn't it be possible to load in an XML file to set the UI style and appearance ?
The post was edited 1 time, last by thedevsykes ().