richman.h
来自「本手机游戏richman运行于Nokia 9210 Communicator手机」· C头文件 代码 · 共 196 行
H
196 行
// Richman.H
//
// Copyright Lijichuan. All rights reserved.
//
////////////////////////////////////////////////////////////////////
//
// This file contains the class definitions for the RIchman program.
//
////////////////////////////////////////////////////////////////////
#ifndef __IDMIN_H
#define __IDMIN_H
#include <eikappui.h>
#include <eikapp.h>
#include <eikdoc.h>
#include <eikenv.h>
#include <eikchred.h>
#include <f32file.h>
#include <eikmfne.h>
#include <e32math.h>
#include <e32std.h>
#include <MinimalDialog.rsg>
#include "MinimalDialog.hrh"
#define PERSON_NUM 4
#define PROPERTY Person[PersonThisTurn][0]
#define LOCATION Person[PersonThisTurn][1]
#define LandNum 44
#define LandPra 9
#define LAND_VALUE Land[LOCATION][7]
#define RoadNum 10
#define LandPerRoad 5
#ifdef __WINS__
#define CITYNAMELENGTH 10
#else
#define CITYNAMELENGTH 2
#endif
const TUid KUidIdmin = {0x1000427f};
class CExampleAppView : public CCoeControl, public MCoeControlContext
{
public:
~CExampleAppView();
void ConstructL(const TRect& aRect);
public:
void Draw(const TRect& /*aRect*/) const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private:
CFont* iAppFont;
public:
void DrawChoose();
void DrawGo();
static TInt Period(TAny* aPtr);
void Ranking();
void DrawText();
void DrawSaiZi();
void DrawHouseAndPerson();
void News();
void Special(TInt i);
void LoadResource();
void LoadAllBitmap();
void GetFullPath();
bool IsLand(TInt i);
void TurnInitial();
void ThisTurn();
void Refresh();
void LoadSprite();
void BltBuffer();
void DoPeriodTask();
void StartTimer();
void InitialData();
TBuf <30> FullPath;
TInt saizicnt,waitsaizi;
TInt saizisort[6];
TInt64 TimerCount;
TInt Person[PERSON_NUM+1][2]; //4 Person's information
//person[0][] leave blank
//Person[i][0] property
//person[i][1] location
TInt WhichCity(TInt i);
TInt WaitTimer;
TInt Arrived;
TInt PersonThisTurn;
TInt CanBuyLand;
TInt ThisTurnFinished;
TInt KeyChoose;
TInt GoFinished;
TInt TurnTo;
TInt BeforeStart;
TInt Step;
TInt PersonGo;
TUint Key;
TInt computed;
TInt RamNumber;
TInt ChoosePerson;
TInt Player;
CFbsBitmap* testbmp;
CFbsBitmap* PicFace[4];
CFbsBitmap* PicFaceSmall[4];
CFbsBitmap* AppBitMap;
CFbsBitmap* SpriteBitMap[PERSON_NUM];
CFbsBitmap* SpriteMaskBitMap[PERSON_NUM];
CFbsBitmap* AHouse2[PERSON_NUM];
CFbsBitmap* AHouse2m;
CFbsBitmap* AHouse3[PERSON_NUM];
CFbsBitmap* AHouse3m;
CFbsBitmap* AHouse4[PERSON_NUM];
CFbsBitmap* AHouse4m;
CFbsBitmap* House[PERSON_NUM];
CFbsBitmap* Housem[PERSON_NUM];
CFbsBitmap* PicYes;
CFbsBitmap* PicNo;
CFbsBitmap* PicGo;
CFbsBitmap* PicGom;
CFbsBitmap* PicSaiZi[6];
CFbsBitmap* PicSaiZim[6];
CFbsBitmap* iBackBufferBitmap;
CFbsBitmap* Finger;
CFbsBitmap* FingerMask;
CFbsBitmapDevice* iBackBufferDevice;
CFbsBitGc* iBackBufferGc;
RWsSprite iMySprite;
TSpriteMember iMySpriteMembers[7];
TInt blank();
CFbsBitmap* LoadMyBitmapL(TInt i);
CPeriodic* iPeriodicTimer;
//CArrayPtrFlat<CSprite>* iSprites;
TInt Posion,k;
TUint16* BitAdd;
TUint16* BufferAdd;
TUint16* screenMemory;
TUint16* ScrrenMemoryBak;
TTime now;
TInt64 iSeed;
TInt Land[LandNum][LandPra];
//land[i][0] owner of the land
//land[i][1] level of the land
//land[i][2] x position of the land
//land[i][3] y position of the land
//land[i][4] x position of the land associate road
//land[i][5] y position of the land associate road
//land[i][6] init value of the land
//land[i][7] current value of the land
TInt Road[RoadNum][LandPerRoad+1/*4*/];
//Road[i][0] Land Number of The Road
TInt RankPerson[PERSON_NUM];
TInt RankProperty[PERSON_NUM];
TInt PerTime,tempk;
TInt PersonLocation;
TBuf <40> KPersonName[4];
TBuf <100> KInfo[15];
TBuf <50> KSays[4][4];
TBuf <40> KNews[12][2];
};
class CExampleAppUi : public CEikAppUi
{
public:
void ConstructL();
~CExampleAppUi();
private:
void HandleCommandL(TInt aCommand);
TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
public:
CExampleAppView* iAppView;
};
class CExampleDocument : public CEikDocument
{
public:
CExampleDocument(CEikApplication& aApp);
private:
CEikAppUi* CreateAppUiL();
};
class CExampleApplication : public CEikApplication
{
private:
CApaDocument* CreateDocumentL();
TUid AppDllUid() const;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?