Unused frame(window) management

Posted by Serhiy on Game Development See other posts from Game Development or by Serhiy
Published on 2011-02-04T14:38:15Z Indexed on 2011/02/04 15:34 UTC
Read the original article Hit count: 184

Filed under:
|

Hey guys,

I'm rewriting my game now using software designing patterns and want to do the code, most correct I can. While implementing MVC(Model View Controller) I got a question which I would like to discuss or to hear some opinions of experts. The question is about management of unused frames... For example next sequence of windows: ResourceLoadingWindow -> LoginWindow -> GameWindow Definetly that I don't want to reuse ResourceLoadingWindow , since I'm using Java Applet and I don't see any situation when I will need to reuse it. The different story is about LoginWindow, which can be reused a lot of times, because some player would want to Logout and come back again in few minutes for example. I would like to know, following the MVC structure, should I destroy window, removing it from ContentPane or just hide? Maybe I need to unregister it from controller or I shouldn't do so?

Thanks in adavance.

© Game Development or respective owner

Related posts about java

Related posts about gui