mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +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:
@ -11,7 +11,7 @@
|
||||
|
||||
#include "CPlayerState.h"
|
||||
#include "GameLibrary.h"
|
||||
#include "callback/IGameCallback.h"
|
||||
#include "callback/CPrivilegedInfoCallback.h"
|
||||
#include "mapObjects/CGHeroInstance.h"
|
||||
#include "mapObjects/CGTownInstance.h"
|
||||
#include "gameState/CGameState.h"
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
PlayerState::PlayerState(IGameCallback *cb)
|
||||
PlayerState::PlayerState(CPrivilegedInfoCallback *cb)
|
||||
: CBonusSystemNode(PLAYER)
|
||||
, GameCallbackHolder(cb)
|
||||
, color(-1)
|
||||
|
Reference in New Issue
Block a user