Skip to content

Commit

Permalink
add broadcast and whenIReceive
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebarkmin committed Aug 28, 2023
1 parent f2bd05a commit 9b70667
Show file tree
Hide file tree
Showing 26 changed files with 721 additions and 559 deletions.
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/ant.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/kotlinc.xml

This file was deleted.

26 changes: 0 additions & 26 deletions .idea/libraries/KotlinJavaRuntime.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/libraries/libs.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

124 changes: 0 additions & 124 deletions .idea/uiDesigner.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Changelog
index: 4
---

## 3.9.0

- 🚀 Feat: Add support for broadcast and when i receive blocks to the Sprite and the Stage class.

## 3.8.0

- 🚀 Feat: Support for vertical spritesheets was added.
Expand Down
24 changes: 24 additions & 0 deletions docs/de/book/reference/sprite/events/broadcast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"template": "method",
"related": [],
"scratchblock": "broadcast [message v]",
"name": "broadcast(message)",
"class": "Sprite",
"description": "Diese Methode sendet eine Nachricht an alle Figuren und die Bühne. Die Nachricht kann mit whenIReceive verarbeitet werden.",
"syntax": ["void broadcast(message)"],
"returns": "void",
"examples": [
{
"src": "SpriteBroadcast.java",
"preview": "SpriteBroadcast.gif",
"lines": "reg:[Rr]ecorder"
}
],
"parameters": [
{
"name": "message",
"description": "Die Nachricht des Broadcasts.",
"type": "String"
}
]
}
24 changes: 24 additions & 0 deletions docs/de/book/reference/sprite/events/whenIReceive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"template": "method",
"related": [],
"scratchblock": "when I receive [message v]",
"name": "whenIReceive(message)",
"class": "Sprite",
"description": "Diese Methode wird aufgerufen, wenn ein Broadcast empfangen wird.",
"syntax": ["void whenIReceive(message)"],
"returns": "void",
"examples": [
{
"src": "SpriteBroadcast.java",
"preview": "SpriteBroadcast.gif",
"lines": "reg:[Rr]ecorder"
}
],
"parameters": [
{
"name": "message",
"description": "Die Nachricht des Broadcasts.",
"type": "String"
}
]
}
24 changes: 24 additions & 0 deletions docs/de/book/reference/stage/events/broadcast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"template": "method",
"related": [],
"scratchblock": "broadcast [message v]",
"name": "broadcast(message)",
"class": "Stage",
"description": "Diese Methode sendet eine Nachricht an alle Figuren und die Bühne. Die Nachricht kann mit whenIReceive verarbeitet werden.",
"syntax": ["void broadcast(message)"],
"returns": "void",
"examples": [
{
"src": "SpriteBroadcast.java",
"preview": "SpriteBroadcast.gif",
"lines": "reg:[Rr]ecorder"
}
],
"parameters": [
{
"name": "message",
"description": "Die Nachricht des Broadcasts.",
"type": "String"
}
]
}
24 changes: 24 additions & 0 deletions docs/de/book/reference/stage/events/whenIReceive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"template": "method",
"related": [],
"scratchblock": "when I receive [message v]",
"name": "whenIReceive(message)",
"class": "Stage",
"description": "Diese Methode wird aufgerufen, wenn ein Broadcast empfangen wird.",
"syntax": ["void whenIReceive(message)"],
"returns": "void",
"examples": [
{
"src": "SpriteBroadcast.java",
"preview": "SpriteBroadcast.gif",
"lines": "reg:[Rr]ecorder"
}
],
"parameters": [
{
"name": "message",
"description": "Die Nachricht des Broadcasts.",
"type": "String"
}
]
}
24 changes: 24 additions & 0 deletions docs/en/book/reference/sprite/events/broadcast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"template": "method",
"related": [],
"scratchblock": "broadcast [message v]",
"name": "broadcast(message)",
"class": "Sprite",
"description": "This method sends a broadcast to all sprites and the stage. The broadcast can be received by using the whenIReceived method.",
"syntax": ["void broadcast(message)"],
"returns": "void",
"examples": [
{
"src": "SpriteBroadcast.java",
"preview": "SpriteBroadcast.gif",
"lines": "reg:[Rr]ecorder"
}
],
"parameters": [
{
"name": "message",
"description": "The message to broadcast.",
"type": "String"
}
]
}
24 changes: 24 additions & 0 deletions docs/en/book/reference/sprite/events/whenIReceive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"template": "method",
"related": [],
"scratchblock": "when I receive [message v]",
"name": "whenIReceive(message)",
"class": "Sprite",
"description": "This method is called when a broadcast is received.",
"syntax": ["void whenIReceive(message)"],
"returns": "void",
"examples": [
{
"src": "SpriteBroadcast.java",
"preview": "SpriteBroadcast.gif",
"lines": "reg:[Rr]ecorder"
}
],
"parameters": [
{
"name": "message",
"description": "The message of the broadcast.",
"type": "String"
}
]
}
Loading

1 comment on commit 9b70667

@vercel
Copy link

@vercel vercel bot commented on 9b70667 Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.