difficulty.h

来自「VIGASOCO (VIdeo GAmes SOurce COde) Windo」· C头文件 代码 · 共 43 行

H
43
字号
// Difficulty.h
//
//	This class encapsulates all difficulty settings
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _DIFFICULTY_H_
#define _DIFFICULTY_H_


#include "../Types.h"

class Difficulty
{
// tables
protected:
	struct patternsAndOrientationChanges {
		UINT32 movBitPatterns[7];	// movement bit patterns
		int orientationChanges[7];	// ghost counters for orientation changes
	};

	// difficulty tables
	static int difficultyTable[21][6];
	static patternsAndOrientationChanges movPatternsOrientationChanges[7];
	static int ghostCntExitHome[4][3];
	static int remainingPillsDifFlags[8][2];
	static int ghostTimeInPanicState[9];
	static int ghostUnitsExitHome[3];

public:
	static int normalDifSettings[];
	static int hardDifSettings[];

// methods
protected:
	static void setMovementBitPatternsAndOrientationChanges(int entry);
	static void setGhostsOutOfHomeCounters(int entry);

public:
	static void setDifficultySettings(int entry);
};

#endif	// _DIFFICULTY_H_

⌨️ 快捷键说明

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