Пример #1
0
 public Engine(IInputReader reader, IOutputWriter writer, IHeroManager heroManager, ICommandManager commandManager)
 {
     this.reader         = reader;
     this.writer         = writer;
     this.heroManager    = heroManager;
     this.commandManager = commandManager;
 }
Пример #2
0
 public HeroCommand(List <string> args, IHeroManager manager) : base(args, manager)
 {
 }
Пример #3
0
 public QuitCommand(IList <string> args, IHeroManager heroManager) : base(args, heroManager)
 {
 }
 public CommandInterpreter(IHeroManager heroManager)
 {
     this.heroManager = heroManager;
 }
 protected AbstractCommand(IList <string> args, IHeroManager heroManager)
 {
     this.Args        = args;
     this.HeroManager = heroManager;
 }
Пример #6
0
 public HeroController(IHeroManager heroManager)
 {
     HeroManager = heroManager;
 }
Пример #7
0
 public Command(IList <string> args, IHeroManager heroManager)
 {
     this.args        = args;
     this.HeroManager = heroManager;
 }
Пример #8
0
 public HeroCommand(IList <string> parameters, IHeroManager heroManager)
     : base(parameters, heroManager)
 {
 }
Пример #9
0
 protected AbstractCommand(IList <string> parameters, IHeroManager heroManager)
 {
     this.Parameters  = parameters;
     this.HeroManager = heroManager;
 }
Пример #10
0
 public AbstractCommand(IList <string> args, IHeroManager heroManager)
 {
     this.argsList    = args;
     this.heroManager = heroManager;
 }
 public CommandManager(IHeroManager heroManager, Type[] allCommands)
 {
     this.heroManager  = heroManager;
     this.commandTypes = allCommands;
 }
 public CommandManager(IHeroManager heroManager, ITypeCollector typeCollector)
     : this(heroManager, typeCollector.GetAllInheritingTypes <ICommand>())
 {
 }
 public CommandManager(IHeroManager heroManager)
     : this(heroManager, new TypeCollector())
 {
 }
Пример #14
0
 protected AbstractCommand(List <string> args, IHeroManager manager)
 {
     this.Args    = args;
     this.Manager = manager;
 }