mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-07 06:52:07 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
*
|
||||
* 作者: 王少培
|
||||
* 文件名:
|
||||
* 创建时间:
|
||||
*
|
||||
***************************************************************/
|
||||
#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;
|
||||
}
|
||||
|
||||
//------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user