User:Memzero

From Valve Developer Community
Jump to navigation Jump to search

CMemzero.h

#include <ctime>
using namespace std;

class CMemzero : public CBaseDystopiaDeveloper
{
private:
    float m_fCaffeineLevel;
    time_t m_tWake;
public:
    CMemzero();
    ~CMemzero();

    void Code(float fCaffeineSupplement);
    void DrPepper();
};

CMemzero.cpp

#include <ctime>
using namespace std;

CMemzero::CMemzero()
{
     m_fCaffeineLevel = 0;
     m_tWake = time(0);
}

CMemzero::~CMemzero()
{
    m_tWake = 0;
}

void CMemzero::Code(float fCaffeineSupplement)
{
    m_fCaffeineLevel += fCaffeineSupplement;
    // TODO: implement
}

void CMemzero::DrPepper()
{
    m_fCaffeineLevel += 39.6f;
}