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

📄 gamesettings.h

📁 VIGASOCO (VIdeo GAmes SOurce COde) Windows port (v0.01)
💻 H
字号:
// GameSettings.h
//
//	Class that has the current settings (DIPSW dependant) and processes coins
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _GAME_SETTINGS_H_
#define _GAME_SETTINGS_H_


enum CoinsPerCredit {
	COINS = 0,
	CREDITS = 1
};

class GameSettings
{
protected:
	// for new credit check
	int accumulatedCoins;
	int coinsInserted;
	int lastServices, lastCoins1, lastCoins2;

// fields
public:
	int credits;

	// settings
	int coinsPerCredit[2];
	int lives;
	int bonusLife;
	bool alternateGhostNames;
	int *difficulty;

// methods:
protected:
	void checkForCredit();

public:
	void getSettings();
	void checkForCoinInserted();
	void checkForNewCredit();

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

#endif	// _GAME_SETTINGS_H_

⌨️ 快捷键说明

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