payuser.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 65 行
H
65 行
#ifndef __PAY_USER__#define __PAY_USER__#include <string>using namespace std;#include "Timeval.h"class PayUser{public: enum PHASE { PHASE_SET_LOGIN_TIME, PHASE_LOGIN, PHASE_MINUS_POINT, PHASE_LOGOUT, PHASE_MAX };public: PayUser(); ~PayUser();public: void execute(); void executeSetLoginTime(); void executeLogin(); void executeMinusPoint(); void executeLogout();public: // get / set name const string& getName() const { return m_Name; } void setName( const string& name ) { m_Name = name; } // get / set Connection ID int getConID() const { return m_ConID; } void setConID( int id ) { m_ConID = id; } bool isPayEnd() const { return m_LeftTime <= 0; } Timeval getActionTime() const { return m_ActionTime; } // get / set Left time int getLeftTime() const { return m_LeftTime; } void setLeftTime( int leftTime ) { m_LeftTime = leftTime; } void setSendTime(); void setRecvTime();private: string m_Name; int m_ConID; Timeval m_SendTime; PHASE m_Phase; Timeval m_ActionTime; int m_LeftTime; int m_LogoutRatio;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?