2014-08-23 13:18:53 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
2015-01-13 08:20:27 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Projectile strategy.
|
|
|
|
*
|
|
|
|
*/
|
2014-08-23 13:18:53 +03:00
|
|
|
public class ProjectileStrategy implements DragonSlayingStrategy {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void execute() {
|
2014-10-08 13:42:12 +01:00
|
|
|
System.out
|
|
|
|
.println("You shoot the dragon with the magical crossbow and it falls dead on the ground!");
|
2014-08-23 13:18:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|