Improved comments for strategy pattern sample.

This commit is contained in:
Ilkka Seppala 2015-01-13 08:20:27 +02:00
parent 27a27594f4
commit 991653062d
4 changed files with 16 additions and 1 deletions

View File

@ -2,7 +2,7 @@ package com.iluwatar;
/**
*
* Strategy (DragonSlayingStrategy) encapsulates the algorithm to use. The
* Strategy (DragonSlayingStrategy) encapsulates an algorithm. The containing
* object (DragonSlayer) can alter its behavior by changing its strategy.
*
*/

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Melee strategy.
*
*/
public class MeleeStrategy implements DragonSlayingStrategy {
@Override

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Projectile strategy.
*
*/
public class ProjectileStrategy implements DragonSlayingStrategy {
@Override

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Spell strategy.
*
*/
public class SpellStrategy implements DragonSlayingStrategy {
@Override