Card.cpp
资源名称:1731.rar [点击查看]
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:2k
源码类别:
游戏
开发平台:
Visual C++
- // CardObj.cpp: implementation of the CCard class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "BridgeServer.h"
- #include "CardObj.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- //构造函数初始化所有类成员
- //input: void
- //output: void
- //##ModelId=3B394E0F0206
- CCard::CCard()
- {
- m_byteColor=ENUM_NOCOLOR;
- m_byteNumber=ENUM_NOCOLOR;
- m_bFlagMax=FALSE;
- m_strOwnerId="";
- m_byteState=ENUM_STATE_IN;
- }
- //##ModelId=3B394E0F0207
- CCard::~CCard()
- {
- }
- //##ModelId=3B394E0F0211
- BYTE CCard::GetColor(void)
- {
- return m_byteColor;
- }
- //##ModelId=3B394E0F0224
- BYTE CCard::GetNumber(void)
- {
- return m_byteNumber;
- }
- //##ModelId=3B394E0F022E
- void CCard::SetColor(BYTE byteColor)
- {
- m_byteColor=byteColor;
- }
- //##ModelId=3B394E0F0239
- void CCard::SetNumber(BYTE byteNumber)
- {
- m_byteNumber=byteNumber;
- }
- //##ModelId=3B394E0F024C
- void CCard::SetOwnerId(CString strOwnerId)
- {
- m_strOwnerId=strOwnerId;
- }
- //##ModelId=3B394E0F0257
- CString CCard::GetOwnerId(void)
- {
- return m_strOwnerId;
- }
- //##ModelId=3B394E0F026A
- BOOL CCard::GetFlagMax(void)
- {
- return m_bFlagMax;
- }
- //##ModelId=3B394E0F0274
- void CCard::SetFlagMax(BOOL bFlagMax)
- {
- m_bFlagMax=bFlagMax;
- }
- //##ModelId=3B394E0F027F
- void CCard::SetState(BYTE byteState)
- {
- m_byteState=byteState;
- }
- //##ModelId=3B394E0F0292
- BYTE CCard::GetState(void)
- {
- return m_byteState;
- }