File tree Expand file tree Collapse file tree 5 files changed +19
-4
lines changed
command/src/main/java/com/iluwatar Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 22
33/**
44 *
5- * In Command pattern actions are objects that can be executed and undone. The
6- * commands in this example are spells cast by the wizard on the goblin.
5+ * In Command pattern actions are objects that can be executed and undone.
6+ *
7+ * In this example the commands are the spells cast by the wizard on the goblin.
78 *
89 */
910public class App {
Original file line number Diff line number Diff line change 22
33/**
44 *
5- * Interface for spells .
5+ * Interface for Commands .
66 *
77 */
88public abstract class Command {
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Enumeration for target size.
6+ *
7+ */
38public enum Size {
49
510 SMALL , NORMAL , LARGE ;
@@ -24,5 +29,4 @@ public String toString() {
2429 }
2530 return s ;
2631 }
27-
2832}
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Base class for spell targets.
6+ *
7+ */
38public abstract class Target {
49
510 private Size size ;
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Enumeration for target visibility.
6+ *
7+ */
38public enum Visibility {
49
510 VISIBLE , INVISIBLE ;
You can’t perform that action at this time.
0 commit comments