?? oandxengine.h
字號:
// OandXEngine.h
//
// Copyright (c) 2000 - 2006 Symbian Ltd. All rights reserved.
#ifndef OANDXENGINE_H
#define OANDXENGINE_H
#include <s32std.h>
#include "oandxdefs.h"
class COandXEngine : public CBase
/**
This engine class represents the board,
a grid of tiles which can be modified by
the controller.
*/
{
public:
static COandXEngine* NewL();
virtual ~COandXEngine();
// reset
void Reset();
// game logic
TTileState TileStatus(TInt aIndex) const;
TBool TryMakeMove(TInt aIndex, TBool aCrossTurn);
TTileState GameWonBy() const;
// persistence
void ExternalizeL(RWriteStream& aStream) const;
void InternalizeL(RReadStream& aStream);
private:
COandXEngine();
TInt TileState(TInt aX, TInt aY) const;
private:
/**
Each tile's value is represented by an integer,
ETileBlank, ETileNought, or ETileCross.
*/
TFixedArray<TTileState, KNumberOfTiles> iTileStates;
};
#endif // OANDXENGINE_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -