static void Main(string[] args) { Player player = new Player(); Footman footman = new Footman(); player.SelectedUnitAttack(footman); Peasant peasant = new Peasant(); PeasantAdapter adapter = new PeasantAdapter(peasant); player.SelectedUnitAttack(adapter); Console.ReadKey(); }
public PeasantAdapter(Peasant peasant) { _peasant = peasant; }