I’m making an iPhone game and have it so you can chose your difficulty. Instead of making files for each difficulty (such as EasyGameplay.h and EasyGameplay.m) is there a way I can have all the gameplay files in a single one? I would like a single file that holds all the different types of difficulty and has the type of gameplay corresponding. I tried to do this but I had no idea what to do.
Share
Is this what your after?
Somewhere your class can see, probably at the top of GameDifficulty.h
As the interface for your class:
And in the implementation of your class