mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Unified income handling, added IOwnableObject interface
This commit is contained in:
@@ -33,6 +33,7 @@ class ResourceSet;
|
||||
class int3;
|
||||
class MetaString;
|
||||
class PlayerColor;
|
||||
class IOwnableObject;
|
||||
|
||||
class DLL_LINKAGE IObjectInterface : public GameCallbackHolder, public virtual Serializeable
|
||||
{
|
||||
@@ -68,6 +69,8 @@ public:
|
||||
//unified helper to show info dialog for object owner
|
||||
virtual void showInfoDialog(const ui32 txtID, const ui16 soundID = 0, EInfoWindowMode mode = EInfoWindowMode::AUTO) const;
|
||||
|
||||
virtual const IOwnableObject * asOwnable() const = 0;
|
||||
|
||||
//unified interface, AI helpers
|
||||
virtual bool wasVisited (PlayerColor player) const;
|
||||
virtual bool wasVisited (const CGHeroInstance * h) const;
|
||||
|
||||
Reference in New Issue
Block a user