|
@@ -306,6 +306,9 @@ protected:
|
|
/// if true - player can refuse visiting an object (e.g. Tomb)
|
|
/// if true - player can refuse visiting an object (e.g. Tomb)
|
|
bool canRefuse;
|
|
bool canRefuse;
|
|
|
|
|
|
|
|
+ /// if true - object info will shown in infobox (like resource pickup)
|
|
|
|
+ bool showInInfobox;
|
|
|
|
+
|
|
/// return true if this object was "cleared" before and no longer has rewards applicable to selected hero
|
|
/// return true if this object was "cleared" before and no longer has rewards applicable to selected hero
|
|
/// unlike wasVisited, this method uses information not available to player owner, for example, if object was cleared by another player before
|
|
/// unlike wasVisited, this method uses information not available to player owner, for example, if object was cleared by another player before
|
|
bool wasVisitedBefore(const CGHeroInstance * contextHero) const;
|
|
bool wasVisitedBefore(const CGHeroInstance * contextHero) const;
|
|
@@ -345,6 +348,7 @@ public:
|
|
h & static_cast<CArmedInstance&>(*this);
|
|
h & static_cast<CArmedInstance&>(*this);
|
|
h & info;
|
|
h & info;
|
|
h & canRefuse;
|
|
h & canRefuse;
|
|
|
|
+ h & showInInfobox;
|
|
h & resetParameters;
|
|
h & resetParameters;
|
|
h & onSelect;
|
|
h & onSelect;
|
|
h & visitMode;
|
|
h & visitMode;
|