Associate a texture to an object (from a data-model, not graphical point of view).
- by Raveline
I'm writing a roguelike where objects and floor can be made of different materials. For instance, let's say we can have a wooden chair, an iron chair, a golden chair, and so on.
I've got an Object class (I know, the name is terrible), which is more or less using a composite pattern, and a Material class. Material have different important…