2014-08-23 13:18:53 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
|
|
|
public class SpellStrategy implements DragonSlayingStrategy {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void execute() {
|
2014-10-08 13:42:12 +01:00
|
|
|
System.out
|
|
|
|
.println("You cast the spell of disintegration and the dragon vaporizes in a pile of dust!");
|
2014-08-23 13:18:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|