How to use class-specific variables in a function?

I give up on this thread. But I'll call it solved because mister Arrch over there did answer my question. The whole deal with the struct, I now just going to replace it by defining its vars in the class.