⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gamestartcontainer.h

📁 俄罗斯方块
💻 H
字号:
#ifndef GAMESTARTCONTAINER_H_
#define GAMESTARTCONTAINER_H_



// INCLUDES
#include <aknview.h>
#include <coecntrl.h>
#include <gdi.h>

class CLvtetrisEngine;
class CLvtetrisMenu;

//#include <eikcmobs.h>


class CGamestartContainer : public CCoeControl
{
    public: // Constructors and destructor
        
    	CGamestartContainer();
        ~CGamestartContainer();

        static CGamestartContainer* NewL( const TRect& aRect );
       	static CGamestartContainer* NewLC( const TRect& aRect );
       	void ConstructL( const TRect& aRect );

    public: // New functions
		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
    
    public:
    	static TInt Tick(TAny *app){return ((CGamestartContainer*)app)->Updata();}
    	TInt Updata(void);
    	void Continue();
    	void DoFrame();
    	TInt8 GameState();
//    	void LoadBlocks();
 //   	void DrawTetris();
    	
    private: // Functions from base classes
	    TInt CountComponentControls() const;
	    CCoeControl* ComponentControl(TInt aIndex) const;
	    void Draw(const TRect& aRect) const;
    //data
    private:
    	CWsBitmap			*iBackground;
    	CFbsBitmap 			*backBuffer ;
    	CFbsBitGc 			*backBufferGc;
    	CFbsBitmapDevice	*backBufferDevice;
    	CLvtetrisEngine*	iEngine;
    	CLvtetrisMenu*		iMenu;
    	CPeriodic			*iTimer; 
    	TTimeIntervalMicroSeconds32 iFrame;
    	TInt8 iLevel, iStatus, iFrameStatus;
    	TInt	iWidth, iHeight;
    	TBool iDrawflag;
};
#endif /*GAMESTARTCONTAINER_H_*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -