Hey guys, I'm making a class object, which is given a pointer to a class physics, which is has the option of taking a pointer to a funtion for key presses. Know I was thinking something like this.
Is that even on the right track?Code:class Physics3f { public: physics3f(float, float, float); void endable(std::string); // differentiate between user, ai, free world void disable(std::string); // in order to change feature void keyfunc(std::vector<float> (*KFptr)());// pointer to key function ... }; class object3f { public: object3fptr(float, float, float, *Physics3f); ... };
Thanks,
Joe