Files
SmallGame_Cocos2dx/Classes/GameCommand.cpp
T
2014-08-20 16:15:02 +08:00

60 lines
988 B
C++

/***************************************************************
*
*
* 作者: 王少培
* 文件名:
* 创建时间:
*
***************************************************************/
#include "GameCommand.h"
//------------------------------------------------------
CGameCommand::CGameCommand( unsigned int startTime, unsigned int duringTime )
: mStartTime(startTime)
, mDuringTime(duringTime)
, mEndTime(startTime + duringTime)
, mDone(false)
{
}
CGameCommand::~CGameCommand()
{
}
void CGameCommand::Execute()
{
mDone = true;
}
unsigned int CGameCommand::GetStartTime() const
{
return mStartTime;
}
unsigned int CGameCommand::GetDuringTime() const
{
return mDuringTime;
}
unsigned int CGameCommand::GetEndTime() const
{
return mEndTime;
}
bool CGameCommand::IsDone() const
{
return mDone;
}
void CGameCommand::SetDone( bool bDone )
{
mDone = bDone;
}
//------------------------------------------------------