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 2
2
3
3
/**
4
4
*
5
- * Strategy (DragonSlayingStrategy) encapsulates the algorithm to use . The
5
+ * Strategy (DragonSlayingStrategy) encapsulates an algorithm. The containing
6
6
* object (DragonSlayer) can alter its behavior by changing its strategy.
7
7
*
8
8
*/
Original file line number Diff line number Diff line change 1
1
package com .iluwatar ;
2
2
3
+ /**
4
+ *
5
+ * Melee strategy.
6
+ *
7
+ */
3
8
public class MeleeStrategy implements DragonSlayingStrategy {
4
9
5
10
@ Override
Original file line number Diff line number Diff line change 1
1
package com .iluwatar ;
2
2
3
+ /**
4
+ *
5
+ * Projectile strategy.
6
+ *
7
+ */
3
8
public class ProjectileStrategy implements DragonSlayingStrategy {
4
9
5
10
@ Override
Original file line number Diff line number Diff line change 1
1
package com .iluwatar ;
2
2
3
+ /**
4
+ *
5
+ * Spell strategy.
6
+ *
7
+ */
3
8
public class SpellStrategy implements DragonSlayingStrategy {
4
9
5
10
@ Override
You can’t perform that action at this time.
0 commit comments