Why the heck are player collision with block code in the block? Even as a simple implementation it would be put into the player class, but overall it would be better to put it in your collision manager.I see your point. Collision detection, and stopping the player walking through the block is handled in the player class, its just block specific collision stuff, like pressure plates, and trip wires, where its handled in the block. In most blocks, this will be left blank, its just some special blocks that will be different. Similarly, to make blocks that aren't solid, a custom declaration and render would be needed. When i've finished, and got some new blocks type (and dynamite lol), i'll have to show you, then it'll all make sense (I hope)
Isn't this just using reflection?It is indeed, I was just getting myself confused. Sorry about that one lol.
Offtopic, your class should start with an Upperclase letter.Indeed it should. I've borrowed and edited a friends class, and just havent got round to renaming it yet lol. I'll sort it before i finish.