03-12-2014, 09:33 PM
Just add a member variable and possibly initialize it in the constructor, or provide a setter to call:
class cAntiCheatTask : public cWorld::cTask { public: cAntiCheatTask(int a_Var1) : m_Var1(a_Var1) { } void SetVar2(int a_Var2) { m_Var2 = a_Var2; } protected: int m_Var1; int m_Var2; virtual void Run(cWorld & a_World) override { int Total = m_Var1 + m_Var2; // example } };