public CommandProccesor(Game game, List <IUnit> startingUnits, WorldHandler wh, InputDefinitions input, CommandComponent command, Camera camera) : base(game) { this.cc = command; this.wh = wh; this.input = input; this.camera = camera; commands = new List <ICommand>(); buttons = new List <CommandButton>(); }
public override void Execute(CommandComponent uc) { uc.Learn(building, tech); this.Log(uc); }
public virtual void Execute(CommandComponent uc) { this.Log(uc); }
protected virtual string Log(CommandComponent uc) { string LogString = string.Format($"{CommandName} executed."); return(LogString); }
public override void Execute(CommandComponent uc) { uc.Garrison(building); base.Log(uc); }