34 bool isTarget() const override final;
37 virtual
bool isStage()
const {
return false; }
39 const std::string &name()
const;
40 void setName(
const std::string &name);
42 const std::vector<std::shared_ptr<Variable>> &variables()
const;
43 int addVariable(std::shared_ptr<Variable> variable);
44 std::shared_ptr<Variable> variableAt(
int index)
const;
45 int findVariable(
const std::string &variableName)
const;
46 int findVariableById(
const std::string &
id)
const;
50 const std::vector<std::shared_ptr<List>> &lists()
const;
51 int addList(std::shared_ptr<List> list);
52 std::shared_ptr<List> listAt(
int index)
const;
53 int findList(
const std::string &listName)
const;
54 int findListById(
const std::string &
id)
const;
58 const std::vector<std::shared_ptr<Block>> &blocks()
const;
59 int addBlock(std::shared_ptr<Block> block);
60 std::shared_ptr<Block> blockAt(
int index)
const;
61 int findBlock(
const std::string &
id)
const;
62 std::vector<std::shared_ptr<Block>> greenFlagBlocks()
const;
64 const std::vector<std::shared_ptr<Comment>> &comments()
const;
65 int addComment(std::shared_ptr<Comment> comment);
66 std::shared_ptr<Comment> commentAt(
int index)
const;
67 int findComment(
const std::string &
id)
const;
69 int costumeIndex()
const;
70 virtual void setCostumeIndex(
int newCostumeIndex);
72 std::shared_ptr<Costume> currentCostume()
const;
73 virtual int currentCostumeWidth()
const;
74 virtual int currentCostumeHeight()
const;
76 const std::vector<std::shared_ptr<Costume>> &costumes()
const;
77 int addCostume(std::shared_ptr<Costume> costume);
78 std::shared_ptr<Costume> costumeAt(
int index)
const;
79 int findCostume(
const std::string &costumeName)
const;
81 const std::vector<std::shared_ptr<Sound>> &sounds()
const;
82 int addSound(std::shared_ptr<Sound> sound);
83 std::shared_ptr<Sound> soundAt(
int index)
const;
84 int findSound(
const std::string &soundName)
const;
86 double volume()
const;
87 void setVolume(
double newVolume);
90 virtual void setSoundEffectValue(
Sound::Effect effect,
double value);
92 virtual void clearSoundEffects();
94 virtual Rect boundingRect()
const;
95 virtual Rect fastBoundingRect()
const;
97 bool touchingSprite(
Sprite *sprite)
const;
98 virtual bool touchingPoint(
double x,
double y)
const;
99 bool touchingEdge()
const;
100 virtual bool touchingColor(
Rgb color)
const;
101 virtual bool touchingColor(
Rgb color,
Rgb mask)
const;
104 virtual void setGraphicsEffectValue(
IGraphicsEffect *effect,
double value);
106 virtual void clearGraphicsEffects();
111 void setEngine(
IEngine *engine)
override final;
118 virtual bool touchingClones(
const std::vector<Sprite *> &clones)
const {
return false; }
121 spimpl::unique_impl_ptr<TargetPrivate> impl;
The TextBubble class represents a text bubble created using say or think block.
Definition textbubble.h:16