Yes, he is checking class name. That is bad, which is why I corrected him.
How exactly is this "bad"?
I was not addressing OP's problem. If you had read the posts above mine there would be no confusion.
I did read the posts above yours, why would I read the bottom of the page first and comment about something I have no sense of context for? For someone named "Frontier Psychiatrist," you seem to have a very poor understanding of how the human brain works. As I stated before,
the string comparison there is not the issue, hence why I assumed you were talking about the OP.
Checking class name to see if it's the correct type of object is like checking race to see if something is a human being. Although no human is a "Cadillac" and no car is a "Caucasian", it's a pointless middleman. You just want to get the type of the object.
What? That brown townogy made no sense whatsoever. If you needed to check if something was a player and you called ::getClassName() on it it would return "Player" if it was a player and something else if it was something else. This method of checking is 100% valid. I suspect you have absolutely no idea what you are talking about.
You're wrong and you're justifying your wrongness very poorly.
What would I even be wrong about? That you were referring to the OP? I crossed out my post, what more of an "oops" do you need?