1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
vcmi/server/ServerNetPackVisitors.h

62 lines
2.5 KiB
C++
Raw Normal View History

/*
* 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
#include "../lib/NetPackVisitor.h"
class ApplyGhNetPackVisitor : public VCMI_LIB_WRAP_NAMESPACE(ICPackVisitor)
{
private:
bool result;
CGameHandler & gh;
public:
ApplyGhNetPackVisitor(CGameHandler & gh)
:gh(gh), result(false)
{
}
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;
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;
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;
};