TScore.h
上传用户:snevogroup
上传日期:2008-06-06
资源大小:432k
文件大小:1k
- #ifndef __TSCORE_H
- #define __TSCORE_H
- #include <e32base.h>
- #include <s32file.h>
- _LIT(KTextBase,"...");
- typedef TBuf<15> TPlayerName;
- class TScore
- {
- // construct
- public:
- TScore();
- TScore(TInt aScore);
- TScore(TInt aScore, const TDesC& aName);
- public:
- TInt Score();
- TInt Score(TPlayerName& aName);
-
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
-
- TInt operator>(const TScore& aScore);
- TInt operator<(const TScore& aScore);
- TInt operator==(const TScore& aScore);
- // Data
- public:
- TInt iValue;
- TPlayerName iName;
- };
- #endif