Skip to content

Commit 7e7c15f

Browse files
committed
Update libscratchcpp to latest master
* color is touching color is going to be implemented later
1 parent 315c266 commit 7e7c15f

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

src/spritemodel.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ bool SpriteModel::touchingColor(const libscratchcpp::Value &color) const
175175
return m_renderedTarget->touchingColor(color);
176176
}
177177

178+
bool SpriteModel::touchingColor(const libscratchcpp::Value &color, const libscratchcpp::Value &mask) const
179+
{
180+
return false;
181+
}
182+
178183
libscratchcpp::Sprite *SpriteModel::sprite() const
179184
{
180185
return m_sprite;

src/spritemodel.h

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class SpriteModel
6363
bool touchingClones(const std::vector<libscratchcpp::Sprite *> &clones) const override;
6464
bool touchingPoint(double x, double y) const override;
6565
bool touchingColor(const libscratchcpp::Value &color) const override;
66+
bool touchingColor(const libscratchcpp::Value &color, const libscratchcpp::Value &mask) const override;
6667

6768
libscratchcpp::Sprite *sprite() const;
6869

src/stagemodel.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ bool StageModel::touchingColor(const libscratchcpp::Value &color) const
112112
return m_renderedTarget->touchingColor(color);
113113
}
114114

115+
bool StageModel::touchingColor(const libscratchcpp::Value &color, const libscratchcpp::Value &mask) const
116+
{
117+
return false;
118+
}
119+
115120
void StageModel::loadCostume()
116121
{
117122
if (m_renderedTarget && m_stage)

src/stagemodel.h

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class StageModel
4949
bool touchingClones(const std::vector<libscratchcpp::Sprite *> &clones) const override;
5050
bool touchingPoint(double x, double y) const override;
5151
bool touchingColor(const libscratchcpp::Value &color) const override;
52+
bool touchingColor(const libscratchcpp::Value &color, const libscratchcpp::Value &mask) const override;
5253

5354
Q_INVOKABLE void loadCostume();
5455

0 commit comments

Comments
 (0)