playerlevelstate.h

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

H
47
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?