File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
strategy/src/main/java/com/iluwatar Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 22
33/**
44 *
5- * Strategy (DragonSlayingStrategy) encapsulates the algorithm to use . The
5+ * Strategy (DragonSlayingStrategy) encapsulates an algorithm. The containing
66 * object (DragonSlayer) can alter its behavior by changing its strategy.
77 *
88 */
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Melee strategy.
6+ *
7+ */
38public class MeleeStrategy implements DragonSlayingStrategy {
49
510 @ Override
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Projectile strategy.
6+ *
7+ */
38public class ProjectileStrategy implements DragonSlayingStrategy {
49
510 @ Override
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Spell strategy.
6+ *
7+ */
38public class SpellStrategy implements DragonSlayingStrategy {
49
510 @ Override
You can’t perform that action at this time.
0 commit comments