2011-12-14 00:23:17 +03:00
|
|
|
/*
|
|
|
|
* CScriptingModule.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
2017-07-13 10:26:03 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IGameEventsReceiver.h"
|
2011-12-14 00:23:17 +03:00
|
|
|
|
2014-04-20 10:13:37 +03:00
|
|
|
class IGameEventRealizer;
|
2018-02-10 20:52:23 +02:00
|
|
|
class CPrivilegedInfoCallback;
|
2014-04-20 10:13:37 +03:00
|
|
|
|
2011-06-20 14:41:04 +03:00
|
|
|
class CScriptingModule : public IGameEventsReceiver, public IBattleEventsReceiver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void executeUserCommand(const std::string &cmd){};
|
|
|
|
virtual void init(){}; //called upon the start of game (after map randomization, before first turn)
|
|
|
|
virtual void giveActionCB(IGameEventRealizer *cb){};
|
2018-02-10 20:52:23 +02:00
|
|
|
virtual void giveInfoCB(CPrivilegedInfoCallback *cb){};
|
2011-06-20 14:41:04 +03:00
|
|
|
|
|
|
|
CScriptingModule(){}
|
|
|
|
virtual ~CScriptingModule(){}
|
2014-04-19 20:44:21 +03:00
|
|
|
};
|
2014-04-20 11:40:15 +03:00
|
|
|
|