// // MapAdventureObjectLadder.cpp // WattsenglishFoodApp // // Created by Katarzyna Kalinowska-Górska on 21/03/2020. // #include "AniMapUtils.h" #include "MapAdventureObjectLadder.h" #include "AniScalingUtils.h" MapAdventureObjectLadder::MapAdventureObjectLadder(const rapidjson::Value& p_mapObjectData, IMapImageObject* p_mapImageObject, IMapImageObject* p_hintMapImageObject) : MapAdventureObjectRotatingEnd(p_mapObjectData, p_mapImageObject, p_hintMapImageObject) { m_objectClassName = ClassName; m_endStandTileUp = AniJSONParseUtilsMap::parseTileData(p_mapObjectData["endStandPointUp"]); m_endStandTileDown = AniJSONParseUtilsMap::parseTileData(p_mapObjectData["endStandPointDown"]); if(m_isReady){ m_active = false; } } std::vector MapAdventureObjectLadder::getEntryTiles() const { if(m_isReady){ return std::vector{m_endStandTileDown, m_endStandTileUp}; // return m_entryTilesReady; } else { return m_entryTilesLying; } } void MapAdventureObjectLadder::performOnRotationComplete(){ m_active = false; }