summaryrefslogtreecommitdiff
path: root/DesignPatterns/src/app/DesignPatterns.Strategy/Troll.cs
blob: 699b9e85e82e63364be31beeea5a0c705d327e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Created by: 
 * Created: Monday, July 02, 2007
 */

namespace DesignPatterns.Strategy {
	public class Troll : Character {
		public Troll( ) : this( new Knife( ) ) {}

		public Troll( IWeapon weapon ) : base( weapon ) {}

		public override void Fight( ) {
			Weapon.UseWeapon( );
		}
	}
}