mercredi 17 avril 2019

parameters definitions conflicts

I try to implement a game in java with 'MCV' pattern, and I have a conflict about how to define some parameters in the 'view' class.

Is it correct to make the width and height of the JFrame and paths of images as 'final static' variables, that define at the start? or define in the builder? or I don't need to save them as 'final static', but get them on the builder parameters from the 'control' class?

I will be happy for recommendations and explanations for any solution. thank you :)

Aucun commentaire:

Enregistrer un commentaire