I have a question about function calls and their format. someone in another thread had this written as a function and i was hoping someone could clear it up for me. I dont know if im having a major brain fart or what.
IWatch->GetPosition().x
the way i read it is IWatch is a class pointer to the member function GetPosition that takes 0 arguments. What is .x doing there? it looks like a member access operator for a class or a structure but ive never seen it used on the tail of a function before.
Now, look at your code again - since GetPosition returns a Position, you can either store it in another Pos object first and then get the x, or just get the x right off the bat. Obviously the second option is easier :)
ok ive never seen that before in any of the c++ examples ive read. I made my own example based off of your code and it worked. thats really cool and a neat shortcut. thanks for showing it to me. I never knew you could do that. really interesting.