Tacticular Cancer: We'll have your balls

  1. Having trouble staying logged in? Note: We are rpgcodex.NET not .COM. Trying to login via .com will cause issues. Make sure you are on rpgcodex.net to login and all will be fine.

    And if the Password Recovery doesn't work (there was an error transitioning accounts during the upgrade), use the "contact us" link right down the bottom right of the forums and harass us about it. Include your account name and its e-mail address (or whatever parts of it you remember).

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

I need a way to put all my objects inside the same container.

Discussion in 'Codex Workshop' started by desocupado, Aug 14, 2012.

  1. toro Scholar

    toro
    Joined:
    Apr 14, 2009
    Posts:
    1,478
    Click here and disable ads!
    I don't understand shit from what you posted.
  2. Ion Prothon II Savant

    Ion Prothon II
    Joined:
    Jan 10, 2012
    Posts:
    1,012
    Location:
    Ołobok Zdrój
    Oh, that's bad. I hope others found this little exchange of views amusing and somehow informative.

    The latter one :lol:
  3. crojipjip Artist Formerly Known as Prosper

    crojipjip
    Joined:
    Jan 11, 2012
    Posts:
    2,725
    Code:
    class CNamedObject
    {
    public:
        CNamedObject() : m_nType(0), m_pVal(0)
        {
        }
    
        CNamedObject(string strname, int nType) : m_name(strname), m_nType(nType)
        {
        }
    
        void SetName(string strVal) { m_name = strVal; }
        void SetType(int nVal) { m_nType = nVal; }
        void SetValue(void* pTypeVal) {m_pVal = pTypeVal; }
    
        string GetName() { return m_name; }
        int GetType() { return m_nType; }
        void* GetValue() { return m_pVal; }
        
        
    private:
        string m_name;
        int m_nType;
        void* m_pVal;
        
    };
    
    enum {
        PointerType_Int = 0,
        PointerType_Bool,
        PointerType_Char,
        PointerType_Float,
        PointerType_CustomTypeABC,
        PointerType_CustomTypeABD
    
    
    };
    
    You can store like and unlike things side by side and set a name for each. it won't get better than that. use a vector and you are elite!
  4. J1M Cipher

    J1M
    Joined:
    May 14, 2008
    Posts:
    3,211
    Visual Studio is the best IDE out there by far. Anything with a comparable feature set (Eclipse on its best day) is laggy and has an inconsistent interface.

(buying stuff via the above links helps us pay the hosting bills)