ObjectPlayerClone.cpp
上传用户:szopptop
上传日期:2013-04-23
资源大小:1047k
文件大小:1k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. #include "stdafx.h"
  2. void CPlayerCloneObject::Create(CPlayerObject* pPlayerObject)
  3. {
  4. m_dwRunTime = GetTickCount();
  5. m_dwRunNextTick = 5000;
  6. strcpy(m_szName, "啊力飘");
  7. m_nCurrX = pPlayerObject->m_nCurrX;
  8. m_nCurrY = pPlayerObject->m_nCurrY;
  9. m_nDirection = GetBack(pPlayerObject->m_nDirection);
  10. m_pMap = pPlayerObject->m_pMap;
  11. m_tFeature = pPlayerObject->m_tFeature;
  12. m_pMap->AddNewObject(m_nCurrX, m_nCurrY, OS_MOVINGOBJECT, this);
  13. AddRefMsg(RM_TURN, m_nDirection, m_nCurrX, m_nCurrY, 0, m_szName);
  14. }
  15. void CPlayerCloneObject::Operate()
  16. {
  17. }