1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00
vcmi/client/ArtifactsUIController.h

42 lines
1.1 KiB
C++
Raw Normal View History

2024-06-22 18:29:39 +02:00
/*
* ArtifactsUIController.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
#include "../lib/constants/EntityIdentifiers.h"
2024-06-23 22:48:19 +02:00
#include "../lib/networkPacks/ArtifactLocation.h"
2024-06-22 18:29:39 +02:00
VCMI_LIB_NAMESPACE_BEGIN
class CGHeroInstance;
VCMI_LIB_NAMESPACE_END
class ArtifactsUIController
{
size_t numOfMovedArts;
size_t numOfArtsAskAssembleSession;
std::set<ArtifactID> ignoredArtifacts;
2024-06-23 22:48:19 +02:00
boost::mutex askAssembleArtifactMutex;
2024-06-22 18:29:39 +02:00
2024-07-15 23:03:06 +02:00
public:
ArtifactsUIController();
bool askToAssemble(const ArtifactLocation & al, const bool onlyEquipped = false, const bool checkIgnored = false);
2024-06-23 22:48:19 +02:00
bool askToAssemble(const CGHeroInstance * hero, const ArtifactPosition & slot, const bool onlyEquipped = false,
2024-07-15 23:03:06 +02:00
const bool checkIgnored = false);
2024-06-22 18:29:39 +02:00
bool askToDisassemble(const CGHeroInstance * hero, const ArtifactPosition & slot);
void artifactRemoved();
void artifactMoved();
2024-06-23 22:48:19 +02:00
void bulkArtMovementStart(size_t totalNumOfArts, size_t possibleAssemblyNumOfArts);
2024-06-22 18:29:39 +02:00
void artifactAssembled();
void artifactDisassembled();
};