summaryrefslogtreecommitdiff
path: root/DesignPatterns/src/app/DesignPatterns.Strategy/Knight.cs
blob: affce390abeeb2b3aadfcccce5c1cfd89cf0582d (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 Knight : Character {
		public Knight( ) : this( new Axe( ) ) {}

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

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