MapAdventureObjectLadder.h
1.31 KB
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
35
36
37
38
39
//
//  MapAdventureObjectLadder.h
//  WattsenglishFoodApp
//
//  Created by Katarzyna Kalinowska-Górska on 21/03/2020.
//
#ifndef MapAdventureObjectLadder_h
#define MapAdventureObjectLadder_h
#include "MapAdventureObjectRotatingEnd.h"
#include "AniMapUtils.h"
#include "AniJSONParseUtilsMap.h"
class MapAdventureObjectLadder : public MapAdventureObjectRotatingEnd {
    
public:
    constexpr static char* const ClassName {const_cast<char* const>("MapAdventureObjectLadder")};
    
    // init
    MapAdventureObjectLadder(const rapidjson::Value& p_mapObjectData, IMapImageObject* p_mapImageObject, IMapImageObject* p_hintMapImageObject);
    
    // overrides
    virtual std::vector<AniMapUtils::TileData> getEntryTiles()  const override;
    
    // other getters
    inline const AniMapUtils::TileData& getEndStandTileUp() const {return m_endStandTileUp;}
    inline const AniMapUtils::TileData& getEndStandTileDown() const {return m_endStandTileDown;}
    
protected:
    // props
    AniMapUtils::TileData m_endStandTileUp; // the tile where the player arrives immediately after climbing the ladder
    AniMapUtils::TileData m_endStandTileDown; // the tile where the player arrives immediately after descending the ladder
    
    virtual void performOnRotationComplete() override;
};
#endif /* MapAdventureObjectLadder_h */
