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

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

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