engine.cpp
来自「《SymbianOSC手机应用开发》源码」· C++ 代码 · 共 50 行
CPP
50 行
// engine.cpp
//
// Copyright (c) 2000 Symbian Ltd. All rights reserved.
#include "engine.h"
// construct/destruct
CGameEngine::~CGameEngine()
{
delete iLastSent;
delete iLastReceived;
}
// interrogate
_LIT(KNullString,"");
const TDesC& CGameEngine::LastSent() const
{
if (iLastSent)
return *iLastSent;
else
return KNullString;
}
const TDesC& CGameEngine::LastReceived() const
{
if (iLastReceived)
return *iLastReceived;
else
return KNullString;
}
// set
void CGameEngine::SetLastSentL(const TDesC& aString)
{
delete iLastSent;
iLastSent=0;
iLastSent=aString.AllocL();
}
void CGameEngine::SetLastReceivedL(const TDesC& aString)
{
delete iLastReceived;
iLastReceived=0;
iLastReceived=aString.AllocL();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?