dimanche 1 février 2015

Code design: Which pattern to use

I am developing the client-server-architecture of a game. The "Client" class communicates with the server and has to interact with other classes depending on the type of information it receives, for instance: If the client class receives



  • map data then it should interact with the class which stores the maps

  • data about other players (name, ip, ...) then it should interact with the GUI (in order to display the data)


Should the client class store references (pointer) to the "maps" and the "lobbyGUI" class or is this a typical case for using the MVC pattern?


Aucun commentaire:

Enregistrer un commentaire