Fun with naming - what to call Wall/Ground/Ceiling class
I would suggest the name "Surface". I'm not sure if it is appropriate to use prefixes like "Level" or "World".. I think I would prefer to use namespaces if any ambiguity between different parts of the code occurs (as surface could represent many things).
Well, you could try "Solid" or "Block"... All of the other good stuff is taken. *Looks accusingly at a mirror, right before it shatters*
Quite a selection here! [grin]
I'm going to slap together two and make "WorldCollisionSurface". I hope its verbosity won't be a problem. Thanks for all the ideas. [smile]
I'm going to slap together two and make "WorldCollisionSurface". I hope its verbosity won't be a problem. Thanks for all the ideas. [smile]
I seriously believe the biggest impediment to true Object Oriented coding is thinking of The Perfect classname.
I would'nt worry too much about the class name anyway. You'll soon find out if there is something wrong with the one you chose and with a decent IDE it should'nt be difficult to change the name of the class later.
Use inhertance and name is whatever you want, which also aid in the future when u may need to have distinctions between the types. Just remember than cObject can only communicate with cFloor via virtual functions but cFloor knows all of cObject.
class cObject;
class cFloor : public cObject;
CheckCollision(cObject *pObject);
But this is assuming ur using c++...
class cObject;
class cFloor : public cObject;
CheckCollision(cObject *pObject);
But this is assuming ur using c++...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement