Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * -->This page is prepared by LordAmit
- */
- package observer.strategypattern;
- /**
- *
- * @author LordAmit
- */
- public class DefensiveFight implements IMode{
- /**
- * invokes the defensive fighting method
- * @author LordAmit
- * @param sol specifies the Soldier which is being used.
- * @since 2011
- */
- public void fight(Soldier sol) {
- System.out.println("Hi, this is "+sol.getName()+" fighting defensively");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement