I would like to subclass the Action* class so I have access to the step function however I am not sure how to do that as the copy and assign members of Action class are disallowed.
This is what I have so far
class CustAction : public Action
{
public:
virtual void step(float dt)
{
//I need access to this
}
//The following is not possible as the Action class has the copy constructor and assignment operator marked as deleted.
CustAction(Action* action_) : Action(action_)
{
}
};
What i would like is a simple action class derived type that could call my step method. Any suggestions ?