mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
04a1df29ad
TeleportChannel is structure that contain two vectors of entrances and exits for certain teleport channel. It's also store passability state independently which almost only useful for Player and AI as they can't know if channel passible or not until enough entrances / exits are visible or server passed them information that certain channel is impassible when they visited entrance. ETeleportChannelType is determined by checking intersection between entrances and exit vectors or checking their size: - IMPASSABLE: one of vectors empty or only one entrance id is same as only one exit id. - BIDIRECTIONAL: contents of both vectors is exactly the same. - UNIDIRECTIONAL: contents of both vectors do not intersect. - MIXED: contents of vectors only partially intersect. Not currently used; added for future modding. |
||
---|---|---|
.. | ||
CArmedInstance.cpp | ||
CArmedInstance.h | ||
CBank.cpp | ||
CBank.h | ||
CGHeroInstance.cpp | ||
CGHeroInstance.h | ||
CGMarket.cpp | ||
CGMarket.h | ||
CGPandoraBox.cpp | ||
CGPandoraBox.h | ||
CGTownInstance.cpp | ||
CGTownInstance.h | ||
CObjectClassesHandler.cpp | ||
CObjectClassesHandler.h | ||
CObjectHandler.cpp | ||
CObjectHandler.h | ||
CommonConstructors.cpp | ||
CommonConstructors.h | ||
CQuest.cpp | ||
CQuest.h | ||
CRewardableConstructor.cpp | ||
CRewardableConstructor.h | ||
CRewardableObject.cpp | ||
CRewardableObject.h | ||
JsonRandom.cpp | ||
JsonRandom.h | ||
MapObjects.h | ||
MiscObjects.cpp | ||
MiscObjects.h | ||
ObjectTemplate.cpp | ||
ObjectTemplate.h |