AntiCheat
#24
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
    }
};
Reply
Thanks given by:


Messages In This Thread
AntiCheat - by daniel0916 - 02-16-2014, 01:19 AM
RE: AntiCheat - by tigerw - 02-16-2014, 01:23 AM
RE: AntiCheat - by daniel0916 - 02-16-2014, 01:32 AM
RE: AntiCheat - by NiLSPACE - 02-16-2014, 01:45 AM
RE: AntiCheat - by tonibm19 - 02-16-2014, 01:56 AM
RE: AntiCheat - by daniel0916 - 02-16-2014, 01:59 AM
RE: AntiCheat - by ThuGie - 02-16-2014, 06:46 AM
RE: AntiCheat - by daniel0916 - 02-16-2014, 07:58 PM
RE: AntiCheat - by daniel0916 - 02-17-2014, 12:24 AM
RE: AntiCheat - by daniel0916 - 03-02-2014, 01:10 AM
RE: AntiCheat - by worktycho - 03-02-2014, 01:21 AM
RE: AntiCheat - by daniel0916 - 03-09-2014, 01:11 AM
RE: AntiCheat - by bearbin - 03-09-2014, 02:29 AM
RE: AntiCheat - by daniel0916 - 03-09-2014, 03:01 AM
RE: AntiCheat - by bearbin - 03-09-2014, 03:03 AM
RE: AntiCheat - by worktycho - 03-09-2014, 04:41 AM
RE: AntiCheat - by daniel0916 - 03-09-2014, 05:02 AM
RE: AntiCheat - by bearbin - 03-09-2014, 07:49 AM
RE: AntiCheat - by worktycho - 03-09-2014, 09:48 AM
RE: AntiCheat - by daniel0916 - 03-09-2014, 11:01 PM
RE: AntiCheat - by daniel0916 - 03-11-2014, 01:37 AM
RE: AntiCheat - by xoft - 03-11-2014, 06:07 AM
RE: AntiCheat - by daniel0916 - 03-12-2014, 04:53 AM
RE: AntiCheat - by xoft - 03-12-2014, 09:33 PM
RE: AntiCheat - by ruhula - 03-15-2014, 04:54 AM
RE: AntiCheat - by jan64 - 09-09-2014, 03:09 AM



Users browsing this thread: 1 Guest(s)