?? opponentformopponent.cpp
字號:
/**
*
* @brief Definition of TOpponentFormOpponent
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "OpponentFormOpponent.h"
// ================= MEMBER FUNCTIONS =======================
TBool TOpponentFormOpponent::IsValid() const
{
return (iName.Length() > 0) && (iPower.Length() > 0);
}
void TOpponentFormOpponent::SetName(const TDesC& aName)
{
if (aName.Length() > KMaxNameLength)
{
return;
}
iName.Copy(aName);
}
const TDes& TOpponentFormOpponent::Name() const
{
return iName;
}
void TOpponentFormOpponent::SetStrength(TInt aStrength)
{
iStrength = aStrength;
}
const TInt TOpponentFormOpponent::Strength() const
{
return iStrength;
}
void TOpponentFormOpponent::SetPower(const TDesC& aPower)
{
if (aPower.Length() > KMaxPowerLength)
{
return;
}
iPower.Copy(aPower);
}
const TDes& TOpponentFormOpponent::Power() const
{
return iPower;
}
void TOpponentFormOpponent::SetPowerIndex(TInt aPowerIndex)
{
iPowerIndex = aPowerIndex;
}
const TInt TOpponentFormOpponent::PowerIndex() const
{
return iPowerIndex;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -