configreader.h

来自「吃豆子游戏源码」· C头文件 代码 · 共 52 行

H
52 行
字号
/**
 *	File	:	ConfigReader.h
 *  Author	:	Kevin Lynx
 *	Date	:	2007/8/4
 */
#ifndef _CONFIG_READER_H_
#define _CONFIG_READER_H_

#include "Singleton.h"

/**
 * ConfigReader
 *
 * read global application config 
 */
class ConfigReader : public Singleton<ConfigReader>
{
public:
	/**
	 * Constructor
	 *
	 * init all properties
	 */
	ConfigReader();

	/**
	 * Destructor
	 *
	 */
	~ConfigReader();

	/**
	 * read
	 *
	 * read the config file
	 */
	bool	read();

	/**
	 * setDefault
	 *
	 */
	void	setDefault();
public:
	bool	     mbFullScreen;
	unsigned int mBits;
	int			 mDeviceType;
	bool		 mEnableLight;
	float		 mGlobalVolume;
};

#endif // end _CONFIG_READER_H_

⌨️ 快捷键说明

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