📄 engine.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -