|
|
|
@ -178,6 +178,7 @@ public:
|
|
|
|
|
|
|
|
|
|
virtual ~TeleportCell() override;
|
|
|
|
|
|
|
|
|
|
/// Set the coordinates of this teleport destination
|
|
|
|
|
void setDestination(coordinate new_cell_row, coordinate new_cell_col);
|
|
|
|
|
|
|
|
|
|
virtual bool onMovingTo(HeroPtr &hero, LevelPtr &level) override;
|
|
|
|
@ -195,16 +196,16 @@ private:
|
|
|
|
|
std::vector<CellPtr> cells;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
// Vector of cell types you can cast in to
|
|
|
|
|
/// Vector of cell types you can cast in to
|
|
|
|
|
static const std::vector<CELL_TYPE> cells_to_cast;
|
|
|
|
|
|
|
|
|
|
TriggerCell(//std::vector<CellPtr> &&cells_to_change,
|
|
|
|
|
coordinate cell_row = 0,
|
|
|
|
|
TriggerCell(coordinate cell_row = 0,
|
|
|
|
|
coordinate cell_col = 0,
|
|
|
|
|
const sf::Color &color = palette::Pink);
|
|
|
|
|
|
|
|
|
|
virtual ~TriggerCell() override;
|
|
|
|
|
|
|
|
|
|
/// Add a cell which has to be placed to map when the trigger gets activated
|
|
|
|
|
void addTarget(CellPtr &&cell);
|
|
|
|
|
|
|
|
|
|
virtual bool onMovingTo(HeroPtr &hero, LevelPtr &level) override;
|
|
|
|
|