5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//
// 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<AniMapUtils::TileData> MapAdventureObjectLadder::getEntryTiles() const {
if(m_isReady){
return std::vector<AniMapUtils::TileData>{m_endStandTileDown, m_endStandTileUp};
// return m_entryTilesReady;
} else {
return m_entryTilesLying;
}
}
void MapAdventureObjectLadder::performOnRotationComplete(){
m_active = false;
}
|