﻿using System.Collections.Generic;

public class WareHouseCommand : Command
{
    public WareHouseCommand(IList<string> cmdArgs, IGameController gamecontroller) 
        : base(cmdArgs, gamecontroller)
    {
    }

    public override void Execute()
    {
        var name = this.CmdArgs[0];
        var count = int.Parse(this.CmdArgs[1]);

        this.GameController.WearHouse.AddAmmunitions(name, count);
    }
}
