#ifndef _ENGINE_CORE_H_
#define _ENGINE_CORE_H_

#include <list>
#include "src\engine.h"
#include "src\timer.h"

namespace engine {
	class Core
	{
	public:
		Core();
		void update();
		void sound();
		void graphics();
		void comm();
		void ai();
		engine_message _msg();
		void run();
		bool init();
		void release();
		void input();
		void sync();
		~Core();

	protected:
	private:
		engine_message msg;
		std::list<void(Core::*)()> *fp;
		Timer timer;
//----		bool keeq[NUM_SCAN_QUE];
		int frames_per_second;
		//std::list<void(core::*)()> fp;
	};
}

#endif/*_ENGINE_CORE_H_*/