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

📄 cchrdiamond.h

📁 Symbian手机游戏,可运行于S60 1.x和2.x下, Carbide.C++ & Vs.Net2003下编译 游戏为吞食鱼的手机版,通过服用比自己体积小的鱼而使自己长大
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
//
// CChrDiamond.h
//
// Copyright (c) 2003 Forum Nokia.  All rights reserved.
//
// 	 Technology developed by Rocket Science Oy Ltd
//
///////////////////////////////////////////////////////////////////////////////

#ifndef __CCHRDIAMOND_H__
#define __CCHRDIAMOND_H__

// INCLUDE FILES
#include <e32base.h>
#include "MCharacter.h"

// FORWARD DECLARATIONS
class CSprite;
class MSystem;
class CTileMap;

// CLASS DECLARATION

/**
* ChrDiamond class holds the behaviour of the diamonds
*/
class CChrDiamond
	: public CBase
	, public MCharacter
	{
	public:

		/**
		* Two-phased constructor.
		*/
		static CChrDiamond* NewL( CSprite* aSprite, MSystem* aSystem, CTileMap* aMap );
		/**
		* Destructor.
		*/
		~CChrDiamond();

	private:

		/**
		* Default constructor
		*/		
		CChrDiamond( CSprite* aSprite, MSystem* aSystem, CTileMap* aMap);
		
		/**
		* Second phase constructor
		*/
		void ConstructL();

	public: // MCharacter

		void ActivateL();
		void Deactivate();
		void Draw( CBitmap& aTarget, const TPoint& aCamera );
		void Move();
		void SetPosition( const TPoint& aPosition );
		void Die();
		void SetType( const TChType& aChType );
		TPoint Position();
		CSprite* Sprite();
		TChType Type();

	private: // Data members

		CSprite* iSprite;
		MSystem* iSystem;
		CTileMap* iTileMap;
		TPoint iPosition;
		TPoint iSpeed;
		TInt iMonsterDir;
		TPoint iCameraPos;
		TBool	iCollected;
		TChType iChType;
	};

#endif

// End of file

⌨️ 快捷键说明

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