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;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void visitSaveGame(SaveGame & pack) override;
|
2023-10-07 01:44:37 +02:00
|
|
|
virtual void visitGamePause(GamePause & pack) override;
|
2023-02-12 09:23:39 +02:00
|
|
|
virtual void visitEndTurn(EndTurn & pack) override;
|
|
|
|
virtual void visitDismissHero(DismissHero & pack) override;
|
|
|
|
virtual void visitMoveHero(MoveHero & pack) override;
|
|
|
|
virtual void visitCastleTeleportHero(CastleTeleportHero & pack) override;
|
|
|
|
virtual void visitArrangeStacks(ArrangeStacks & pack) override;
|
|
|
|
virtual void visitBulkMoveArmy(BulkMoveArmy & pack) override;
|
|
|
|
virtual void visitBulkSplitStack(BulkSplitStack & pack) override;
|
|
|
|
virtual void visitBulkMergeStacks(BulkMergeStacks & pack) override;
|
|
|
|
virtual void visitBulkSmartSplitStack(BulkSmartSplitStack & pack) override;
|
|
|
|
virtual void visitDisbandCreature(DisbandCreature & pack) override;
|
|
|
|
virtual void visitBuildStructure(BuildStructure & pack) override;
|
|
|
|
virtual void visitRecruitCreatures(RecruitCreatures & pack) override;
|
|
|
|
virtual void visitUpgradeCreature(UpgradeCreature & pack) override;
|
|
|
|
virtual void visitGarrisonHeroSwap(GarrisonHeroSwap & pack) override;
|
|
|
|
virtual void visitExchangeArtifacts(ExchangeArtifacts & pack) override;
|
|
|
|
virtual void visitBulkExchangeArtifacts(BulkExchangeArtifacts & pack) override;
|
|
|
|
virtual void visitAssembleArtifacts(AssembleArtifacts & pack) override;
|
2023-04-07 23:41:55 +02:00
|
|
|
virtual void visitEraseArtifactByClient(EraseArtifactByClient & pack) override;
|
2023-02-12 09:23:39 +02:00
|
|
|
virtual void visitBuyArtifact(BuyArtifact & pack) override;
|
|
|
|
virtual void visitTradeOnMarketplace(TradeOnMarketplace & pack) override;
|
|
|
|
virtual void visitSetFormation(SetFormation & pack) override;
|
|
|
|
virtual void visitHireHero(HireHero & pack) override;
|
|
|
|
virtual void visitBuildBoat(BuildBoat & pack) override;
|
|
|
|
virtual void visitQueryReply(QueryReply & pack) override;
|
|
|
|
virtual void visitMakeAction(MakeAction & pack) override;
|
|
|
|
virtual void visitDigWithHero(DigWithHero & pack) override;
|
|
|
|
virtual void visitCastAdvSpell(CastAdvSpell & pack) override;
|
|
|
|
virtual void visitPlayerMessage(PlayerMessage & pack) override;
|
2023-08-16 23:51:50 +02:00
|
|
|
};
|