2023-02-12 09:23:39 +02:00
|
|
|
/*
|
|
|
|
* ServerNetPackVisitors.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
|
|
|
|
|
2023-10-23 12:59:15 +02:00
|
|
|
#include "../lib/networkPacks/NetPackVisitor.h"
|
2023-02-12 09:23:39 +02:00
|
|
|
|
|
|
|
class ApplyGhNetPackVisitor : public VCMI_LIB_WRAP_NAMESPACE(ICPackVisitor)
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
bool result;
|
|
|
|
CGameHandler & gh;
|
|
|
|
|
|
|
|
public:
|
2023-08-22 17:45:13 +02:00
|
|
|
ApplyGhNetPackVisitor(CGameHandler & gh)
|
|
|
|
:gh(gh), result(false)
|
2023-02-12 09:23:39 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool getResult() const
|
|
|
|
{
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2024-02-10 21:22:08 +02:00
|
|
|
void visitSaveGame(SaveGame & pack) override;
|
|
|
|
void visitGamePause(GamePause & pack) override;
|
|
|
|
void visitEndTurn(EndTurn & pack) override;
|
|
|
|
void visitDismissHero(DismissHero & pack) override;
|
|
|
|
void visitMoveHero(MoveHero & pack) override;
|
|
|
|
void visitCastleTeleportHero(CastleTeleportHero & pack) override;
|
|
|
|
void visitArrangeStacks(ArrangeStacks & pack) override;
|
|
|
|
void visitBulkMoveArmy(BulkMoveArmy & pack) override;
|
|
|
|
void visitBulkSplitStack(BulkSplitStack & pack) override;
|
|
|
|
void visitBulkMergeStacks(BulkMergeStacks & pack) override;
|
|
|
|
void visitBulkSmartSplitStack(BulkSmartSplitStack & pack) override;
|
|
|
|
void visitDisbandCreature(DisbandCreature & pack) override;
|
|
|
|
void visitBuildStructure(BuildStructure & pack) override;
|
|
|
|
void visitRecruitCreatures(RecruitCreatures & pack) override;
|
|
|
|
void visitUpgradeCreature(UpgradeCreature & pack) override;
|
|
|
|
void visitGarrisonHeroSwap(GarrisonHeroSwap & pack) override;
|
|
|
|
void visitExchangeArtifacts(ExchangeArtifacts & pack) override;
|
|
|
|
void visitBulkExchangeArtifacts(BulkExchangeArtifacts & pack) override;
|
2024-03-06 15:16:35 +02:00
|
|
|
void visitManageBackpackArtifacts(ManageBackpackArtifacts & pack) override;
|
2024-02-10 21:22:08 +02:00
|
|
|
void visitAssembleArtifacts(AssembleArtifacts & pack) override;
|
|
|
|
void visitEraseArtifactByClient(EraseArtifactByClient & pack) override;
|
|
|
|
void visitBuyArtifact(BuyArtifact & pack) override;
|
|
|
|
void visitTradeOnMarketplace(TradeOnMarketplace & pack) override;
|
|
|
|
void visitSetFormation(SetFormation & pack) override;
|
|
|
|
void visitHireHero(HireHero & pack) override;
|
|
|
|
void visitBuildBoat(BuildBoat & pack) override;
|
|
|
|
void visitQueryReply(QueryReply & pack) override;
|
|
|
|
void visitMakeAction(MakeAction & pack) override;
|
|
|
|
void visitDigWithHero(DigWithHero & pack) override;
|
|
|
|
void visitCastAdvSpell(CastAdvSpell & pack) override;
|
|
|
|
void visitPlayerMessage(PlayerMessage & pack) override;
|
2023-08-16 23:51:50 +02:00
|
|
|
};
|