mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Completely remove IGameCallback class
- CClient now inherits directly from CPrivilegedInfoCallback, like IGameCallback did before. However CClient no longer needs dummy implementation of IGameEventCallback - CGObjectInstance hierarchy now uses CPrivilegedInfoCallback for callback. Actual events can only be emitted in calls that receive IGameEventCallback pointer, e.g. heroVisit - CGameHandler now inherits directly from both CPrivilegedInfoCallback and IGameEventCallback as it did before via IGameCallback
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
#include "../RoadHandler.h"
|
||||
#include "../TerrainHandler.h"
|
||||
|
||||
#include "../callback/IGameCallback.h"
|
||||
#include "../callback/CPrivilegedInfoCallback.h"
|
||||
#include "../entities/artifact/CArtHandler.h"
|
||||
#include "../entities/hero/CHeroHandler.h"
|
||||
#include "../gameState/CGameState.h"
|
||||
@ -170,7 +170,7 @@ EDiggingStatus TerrainTile::getDiggingStatus(const bool excludeTop) const
|
||||
return EDiggingStatus::CAN_DIG;
|
||||
}
|
||||
|
||||
CMap::CMap(IGameCallback * cb)
|
||||
CMap::CMap(CPrivilegedInfoCallback * cb)
|
||||
: GameCallbackHolder(cb)
|
||||
, grailPos(-1, -1, -1)
|
||||
, grailRadius(0)
|
||||
|
Reference in New Issue
Block a user