1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/networkPacks/NetPackVisitor.h

181 lines
9.7 KiB
C++
Raw Normal View History

/*
* CServerHandler.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 "PacksForClient.h"
#include "PacksForClientBattle.h"
#include "PacksForServer.h"
#include "PacksForLobby.h"
#include "SetRewardableConfiguration.h"
2023-10-24 00:27:52 +02:00
#include "SetStackEffect.h"
VCMI_LIB_NAMESPACE_BEGIN
class ICPackVisitor
{
public:
virtual bool callTyped() { return true; }
virtual void visitForLobby(CPackForLobby & pack) {}
virtual void visitForServer(CPackForServer & pack) {}
virtual void visitForClient(CPackForClient & pack) {}
virtual void visitPackageApplied(PackageApplied & pack) {}
virtual void visitSystemMessage(SystemMessage & pack) {}
virtual void visitPlayerBlocked(PlayerBlocked & pack) {}
virtual void visitPlayerCheated(PlayerCheated & pack) {}
virtual void visitPlayerStartsTurn(PlayerStartsTurn & pack) {}
2023-08-24 22:34:28 +02:00
virtual void visitDaysWithoutTown(DaysWithoutTown & pack) {}
2023-08-13 12:06:35 +02:00
virtual void visitTurnTimeUpdate(TurnTimeUpdate & pack) {}
2023-10-07 01:44:37 +02:00
virtual void visitGamePause(GamePause & pack) {}
virtual void visitEntitiesChanged(EntitiesChanged & pack) {}
virtual void visitSetRewardableConfiguration(SetRewardableConfiguration & pack) {}
virtual void visitSetBankConfiguration(SetBankConfiguration & pack) {}
virtual void visitSetResources(SetResources & pack) {}
virtual void visitSetPrimSkill(SetPrimSkill & pack) {}
virtual void visitSetSecSkill(SetSecSkill & pack) {}
virtual void visitHeroVisitCastle(HeroVisitCastle & pack) {}
virtual void visitChangeSpells(ChangeSpells & pack) {}
virtual void visitSetMana(SetMana & pack) {}
virtual void visitSetMovePoints(SetMovePoints & pack) {}
virtual void visitFoWChange(FoWChange & pack) {}
virtual void visitSetAvailableHeroes(SetAvailableHero & pack) {}
virtual void visitGiveBonus(GiveBonus & pack) {}
virtual void visitChangeObjPos(ChangeObjPos & pack) {}
virtual void visitPlayerEndsTurn(PlayerEndsTurn & pack) {};
virtual void visitPlayerEndsGame(PlayerEndsGame & pack) {}
virtual void visitPlayerReinitInterface(PlayerReinitInterface & pack) {}
virtual void visitRemoveBonus(RemoveBonus & pack) {}
virtual void visitSetCommanderProperty(SetCommanderProperty & pack) {}
virtual void visitAddQuest(AddQuest & pack) {}
virtual void visitUpdateArtHandlerLists(UpdateArtHandlerLists & pack) {}
virtual void visitChangeFormation(ChangeFormation & pack) {}
virtual void visitRemoveObject(RemoveObject & pack) {}
virtual void visitTryMoveHero(TryMoveHero & pack) {}
virtual void visitNewStructures(NewStructures & pack) {}
virtual void visitRazeStructures(RazeStructures & pack) {}
virtual void visitSetAvailableCreatures(SetAvailableCreatures & pack) {}
virtual void visitSetHeroesInTown(SetHeroesInTown & pack) {}
virtual void visitHeroRecruited(HeroRecruited & pack) {}
virtual void visitGiveHero(GiveHero & pack) {}
virtual void visitCatapultAttack(CatapultAttack & pack) {}
virtual void visitOpenWindow(OpenWindow & pack) {}
virtual void visitNewObject(NewObject & pack) {}
virtual void visitSetAvailableArtifacts(SetAvailableArtifacts & pack) {}
virtual void visitNewArtifact(NewArtifact & pack) {}
virtual void visitChangeStackCount(ChangeStackCount & pack) {}
virtual void visitSetStackType(SetStackType & pack) {}
virtual void visitEraseStack(EraseStack & pack) {}
virtual void visitSwapStacks(SwapStacks & pack) {}
virtual void visitInsertNewStack(InsertNewStack & pack) {}
virtual void visitRebalanceStacks(RebalanceStacks & pack) {}
virtual void visitBulkRebalanceStacks(BulkRebalanceStacks & pack) {}
virtual void visitBulkSmartRebalanceStacks(BulkSmartRebalanceStacks & pack) {}
virtual void visitPutArtifact(PutArtifact & pack) {}
2024-08-29 17:47:06 +02:00
virtual void visitEraseArtifact(BulkEraseArtifacts & pack) {}
virtual void visitBulkMoveArtifacts(BulkMoveArtifacts & pack) {}
virtual void visitAssembledArtifact(AssembledArtifact & pack) {}
virtual void visitDisassembledArtifact(DisassembledArtifact & pack) {}
virtual void visitHeroVisit(HeroVisit & pack) {}
virtual void visitNewTurn(NewTurn & pack) {}
virtual void visitInfoWindow(InfoWindow & pack) {}
virtual void visitSetObjectProperty(SetObjectProperty & pack) {}
virtual void visitChangeObjectVisitors(ChangeObjectVisitors & pack) {}
2024-03-30 17:18:50 +02:00
virtual void visitChangeArtifactsCostume(ChangeArtifactsCostume & pack) {}
virtual void visitHeroLevelUp(HeroLevelUp & pack) {}
virtual void visitCommanderLevelUp(CommanderLevelUp & pack) {}
virtual void visitBlockingDialog(BlockingDialog & pack) {}
virtual void visitGarrisonDialog(GarrisonDialog & pack) {}
virtual void visitExchangeDialog(ExchangeDialog & pack) {}
virtual void visitTeleportDialog(TeleportDialog & pack) {}
virtual void visitMapObjectSelectDialog(MapObjectSelectDialog & pack) {}
virtual void visitBattleStart(BattleStart & pack) {}
virtual void visitBattleNextRound(BattleNextRound & pack) {}
virtual void visitBattleSetActiveStack(BattleSetActiveStack & pack) {}
virtual void visitBattleResult(BattleResult & pack) {}
virtual void visitBattleLogMessage(BattleLogMessage & pack) {}
virtual void visitBattleStackMoved(BattleStackMoved & pack) {}
virtual void visitBattleUnitsChanged(BattleUnitsChanged & pack) {}
virtual void visitBattleAttack(BattleAttack & pack) {}
virtual void visitStartAction(StartAction & pack) {}
virtual void visitEndAction(EndAction & pack) {}
virtual void visitBattleSpellCast(BattleSpellCast & pack) {}
virtual void visitSetStackEffect(SetStackEffect & pack) {}
virtual void visitStacksInjured(StacksInjured & pack) {}
virtual void visitBattleResultsApplied(BattleResultsApplied & pack) {}
virtual void visitBattleObstaclesChanged(BattleObstaclesChanged & pack) {}
virtual void visitBattleSetStackProperty(BattleSetStackProperty & pack) {}
virtual void visitBattleTriggerEffect(BattleTriggerEffect & pack) {}
virtual void visitBattleUpdateGateState(BattleUpdateGateState & pack) {}
virtual void visitAdvmapSpellCast(AdvmapSpellCast & pack) {}
virtual void visitShowWorldViewEx(ShowWorldViewEx & pack) {}
virtual void visitEndTurn(EndTurn & pack) {}
virtual void visitDismissHero(DismissHero & pack) {}
virtual void visitMoveHero(MoveHero & pack) {}
virtual void visitCastleTeleportHero(CastleTeleportHero & pack) {}
virtual void visitArrangeStacks(ArrangeStacks & pack) {}
virtual void visitBulkMoveArmy(BulkMoveArmy & pack) {}
virtual void visitBulkSplitStack(BulkSplitStack & pack) {}
virtual void visitBulkMergeStacks(BulkMergeStacks & pack) {}
virtual void visitBulkSmartSplitStack(BulkSmartSplitStack & pack) {}
virtual void visitDisbandCreature(DisbandCreature & pack) {}
virtual void visitBuildStructure(BuildStructure & pack) {}
virtual void visitVisitTownBuilding(VisitTownBuilding & pack) {}
virtual void visitRazeStructure(RazeStructure & pack) {}
virtual void visitRecruitCreatures(RecruitCreatures & pack) {}
virtual void visitUpgradeCreature(UpgradeCreature & pack) {}
virtual void visitGarrisonHeroSwap(GarrisonHeroSwap & pack) {}
virtual void visitExchangeArtifacts(ExchangeArtifacts & pack) {}
virtual void visitBulkExchangeArtifacts(BulkExchangeArtifacts & pack) {}
2024-03-06 15:16:35 +02:00
virtual void visitManageBackpackArtifacts(ManageBackpackArtifacts & pack) {}
2024-03-30 17:18:50 +02:00
virtual void visitManageEquippedArtifacts(ManageEquippedArtifacts & pack) {}
virtual void visitAssembleArtifacts(AssembleArtifacts & pack) {}
2023-04-07 23:41:55 +02:00
virtual void visitEraseArtifactByClient(EraseArtifactByClient & pack) {}
virtual void visitBuyArtifact(BuyArtifact & pack) {}
virtual void visitTradeOnMarketplace(TradeOnMarketplace & pack) {}
virtual void visitSetFormation(SetFormation & pack) {}
virtual void visitHireHero(HireHero & pack) {}
virtual void visitBuildBoat(BuildBoat & pack) {}
virtual void visitQueryReply(QueryReply & pack) {}
virtual void visitMakeAction(MakeAction & pack) {}
virtual void visitDigWithHero(DigWithHero & pack) {}
virtual void visitCastAdvSpell(CastAdvSpell & pack) {}
virtual void visitSaveGame(SaveGame & pack) {}
virtual void visitPlayerMessage(PlayerMessage & pack) {}
virtual void visitPlayerMessageClient(PlayerMessageClient & pack) {}
virtual void visitCenterView(CenterView & pack) {}
virtual void visitLobbyClientConnected(LobbyClientConnected & pack) {}
virtual void visitLobbyClientDisconnected(LobbyClientDisconnected & pack) {}
virtual void visitLobbyChatMessage(LobbyChatMessage & pack) {}
virtual void visitLobbyGuiAction(LobbyGuiAction & pack) {}
2023-08-21 03:06:58 +02:00
virtual void visitLobbyLoadProgress(LobbyLoadProgress & pack) {}
virtual void visitLobbyRestartGame(LobbyRestartGame & pack) {}
virtual void visitLobbyPrepareStartGame(LobbyPrepareStartGame & pack) {}
virtual void visitLobbyStartGame(LobbyStartGame & pack) {}
virtual void visitLobbyChangeHost(LobbyChangeHost & pack) {}
virtual void visitLobbyUpdateState(LobbyUpdateState & pack) {}
virtual void visitLobbySetMap(LobbySetMap & pack) {}
virtual void visitLobbySetCampaign(LobbySetCampaign & pack) {}
virtual void visitLobbySetCampaignMap(LobbySetCampaignMap & pack) {}
virtual void visitLobbySetCampaignBonus(LobbySetCampaignBonus & pack) {}
virtual void visitLobbyChangePlayerOption(LobbyChangePlayerOption & pack) {}
virtual void visitLobbySetPlayer(LobbySetPlayer & pack) {}
2023-10-13 23:04:35 +02:00
virtual void visitLobbySetPlayerName(LobbySetPlayerName & pack) {}
2024-07-16 00:40:39 +02:00
virtual void visitLobbySetPlayerHandicap(LobbySetPlayerHandicap & pack) {}
virtual void visitLobbySetSimturns(LobbySetSimturns & pack) {}
virtual void visitLobbySetTurnTime(LobbySetTurnTime & pack) {}
2023-12-28 21:48:19 +02:00
virtual void visitLobbySetExtraOptions(LobbySetExtraOptions & pack) {}
virtual void visitLobbySetDifficulty(LobbySetDifficulty & pack) {}
virtual void visitLobbyForceSetPlayer(LobbyForceSetPlayer & pack) {}
virtual void visitLobbyShowMessage(LobbyShowMessage & pack) {}
2024-04-30 01:52:49 +02:00
virtual void visitLobbyPvPAction(LobbyPvPAction & pack) {}
};
VCMI_LIB_NAMESPACE_END