3

Just as the title states, whats the best way to expose current settings like resolution to my classes? (I know this might have been asked, but I couldn't find anything)

I was thinking of the service-locator design pattern, but I am unsure, as I read that it can be abused easily.( I mean it might not fit this particular use-case )

akaltar
  • 1,681
  • 14
  • 26

1 Answers1

10

Just make them global until you determine that it's a detriment to your system.

Read this: http://c2.com/cgi/wiki?DoTheSimplestThingThatCouldPossiblyWork

Don't add complexity unless you're getting some benefit out of it.

Tetrad
  • 30,124
  • 12
  • 94
  • 143