mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-13 02:22:40 +00:00
fix: Fix minor typos (#2619)
Signed-off-by: Marcel Ribeiro-Dantas <mribeirodantas@seqera.io> Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
co-authored by
Ilkka Seppälä
parent
be0d5e5953
commit
f79782bea9
@@ -32,8 +32,8 @@ public abstract class Superpower {
|
||||
logger.info("Move to ( " + x + ", " + y + ", " + z + " )");
|
||||
}
|
||||
|
||||
protected void playSound(String soundName, int volumn) {
|
||||
logger.info("Play " + soundName + " with volumn " + volumn);
|
||||
protected void playSound(String soundName, int volume) {
|
||||
logger.info("Play " + soundName + " with volume " + volume);
|
||||
}
|
||||
|
||||
protected void spawnParticles(String particleType, int count) {
|
||||
@@ -88,11 +88,11 @@ Program output:
|
||||
```
|
||||
// Use superpower: sky launch
|
||||
// Move to ( 0.0, 0.0, 20.0 )
|
||||
// Play SKYLAUNCH_SOUND with volumn 1
|
||||
// Play SKYLAUNCH_SOUND with volume 1
|
||||
// Spawn 100 particle with type SKYLAUNCH_PARTICLE
|
||||
// Use superpower: ground dive
|
||||
// Move to ( 0.0, 0.0, -20.0 )
|
||||
// Play GROUNDDIVE_SOUND with volumn 5
|
||||
// Play GROUNDDIVE_SOUND with volume 5
|
||||
// Spawn 20 particle with type GROUNDDIVE_PARTICLE
|
||||
```
|
||||
## Class diagram
|
||||
|
||||
Reference in New Issue
Block a user