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

📄 playerlevelstate.h

📁 VIGASOCO (VIdeo GAmes SOurce COde) Windows port (v0.01)
💻 H
字号:
// PlayerLevelState.h
//
//	Class that stores player and level state information
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _PLAYER_LEVEL_STATE_H_
#define _PLAYER_LEVEL_STATE_H_


#include "../Types.h"

class PlayerLevelState
{
// fields
public:
	int diffEntry;
	bool firstFruit;
	bool secondFruit;
	int eatenPills;

	int pinkGhostHomeCounter;
	int blueGhostHomeCounter;
	int orangeGhostHomeCounter;

	bool easierFlag;
	int currentLevel;

	int lives;
	int displayedLives;

	bool normalPills[240];
	int superPills[4];

// methods
public:
	void initPills();
	void clone(PlayerLevelState *p);
	void swapState(PlayerLevelState *p);

	// initialization and cleanup
	PlayerLevelState();
	~PlayerLevelState();
	void resetState();
};

#endif	// _PLAYER_LEVEL_STATE_H_

⌨️ 快捷键说明

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