1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Various fixes for quick combat.

Replaced several boost::bind usages with lambdas.
This commit is contained in:
Michał W. Urbańczyk
2013-06-23 16:09:15 +00:00
parent 06f0a29b31
commit 17403b544c
6 changed files with 39 additions and 37 deletions

View File

@@ -27,8 +27,8 @@ struct CGPathNode;
struct CGPath;
struct CPathsInfo;
struct CPack;
class CBattleGameInterface;
class CGameInterface;
class IBattleEventsReceiver;
class IGameEventsReceiver;
class IBattleCallback
{
@@ -114,10 +114,10 @@ public:
virtual void recalculatePaths(); //updates main, client pathfinder info (should be called when moving hero is over)
//Set of metrhods that allows adding more interfaces for this player that'll receive game event call-ins.
void registerGameInterface(shared_ptr<CGameInterface> cgi);
void registerBattleInterface(shared_ptr<CBattleGameInterface> cbga);
void unregisterGameInterface(shared_ptr<CGameInterface> cgi);
void unregisterBattleInterface(shared_ptr<CBattleGameInterface> cbga);
void registerGameInterface(shared_ptr<IGameEventsReceiver> gameEvents);
void registerBattleInterface(shared_ptr<IBattleEventsReceiver> battleEvents);
void unregisterGameInterface(shared_ptr<IGameEventsReceiver> gameEvents);
void unregisterBattleInterface(shared_ptr<IBattleEventsReceiver> battleEvents);
void unregisterMyInterface(); //stops delivering information about game events to that player's interface -> can be called ONLY after victory/loss