first commit

This commit is contained in:
2014-08-20 16:15:02 +08:00
commit f61e330e38
1633 changed files with 119931 additions and 0 deletions
+59
View File
@@ -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;
}
//------------------------------------------------------