MapAdventureObjectJumpSpot.h
1.21 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
//
// MapAdventureObjectJumpSpot.h
// WattsenglishFoodApp
//
// Created by Katarzyna Kalinowska-Górska on 21/03/2020.
//
#ifndef MapAdventureObjectJumpSpot_h
#define MapAdventureObjectJumpSpot_h
#include "IMapAdventureObject.h"
#include "AniMapUtils.h"
#include "AniJSONParseUtilsMap.h"
class MapAdventureObjectJumpSpot : public IMapAdventureObject {
public:
constexpr static char* const ClassName {const_cast<char* const>("MapAdventureObjectJumpSpot")};
// init
MapAdventureObjectJumpSpot(const rapidjson::Value& p_mapObjectData);
// virtuals
inline virtual std::vector<AniMapUtils::TileData> getOccupiedTiles() const override { return m_occupiedTiles; }
virtual std::vector<AniMapUtils::TileData> getEntryTiles() const override;
// other getters
inline const AniMapUtils::TileData& getEndStandTile(){return m_endStandTile;}
virtual void reset() override {}
protected:
// props
AniMapUtils::TileData m_endStandTile; // the tile where the player lands immediately after the jump
std::vector<AniMapUtils::TileData> m_occupiedTiles; // the spots where the player might start jumping and land on the end tile
};
#endif /* MapAdventureObjectJumpSpot_h */