2023-06-02 20:47:37 +02:00
|
|
|
/*
|
|
|
|
* IObjectInfo.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class DLL_LINKAGE IObjectInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct CArmyStructure
|
|
|
|
{
|
|
|
|
ui32 totalStrength;
|
|
|
|
ui32 shootersStrength;
|
|
|
|
ui32 flyersStrength;
|
|
|
|
ui32 walkersStrength;
|
|
|
|
|
|
|
|
CArmyStructure() :
|
|
|
|
totalStrength(0),
|
|
|
|
shootersStrength(0),
|
|
|
|
flyersStrength(0),
|
|
|
|
walkersStrength(0)
|
|
|
|
{}
|
|
|
|
|
|
|
|
bool operator <(const CArmyStructure & other) const
|
|
|
|
{
|
|
|
|
return this->totalStrength < other.totalStrength;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
virtual bool givesResources() const { return false; }
|
|
|
|
|
|
|
|
virtual bool givesExperience() const { return false; }
|
|
|
|
virtual bool givesMana() const { return false; }
|
|
|
|
virtual bool givesMovement() const { return false; }
|
|
|
|
|
|
|
|
virtual bool givesPrimarySkills() const { return false; }
|
|
|
|
virtual bool givesSecondarySkills() const { return false; }
|
|
|
|
|
|
|
|
virtual bool givesArtifacts() const { return false; }
|
|
|
|
virtual bool givesCreatures() const { return false; }
|
|
|
|
virtual bool givesSpells() const { return false; }
|
|
|
|
|
|
|
|
virtual bool givesBonuses() const { return false; }
|
|
|
|
|
2024-09-21 13:36:28 +02:00
|
|
|
virtual bool hasGuards() const { return false; }
|
|
|
|
|
2023-06-02 20:47:37 +02:00
|
|
|
virtual ~IObjectInfo() = default;
|
2024-09-21 13:36:28 +02:00
|
|
|
|
2023-06-02 20:47:37 +02:00
|
|
|
};
|
2023-06-02 21:00:44 +02:00
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_END
|