📄 playerlevelstate.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 + -