Esempio n. 1
0
 public Engine(IInputReader reader, IOutputWriter writer, IHeroManager heroManager, ICommandManager commandManager)
 {
     this.reader         = reader;
     this.writer         = writer;
     this.heroManager    = heroManager;
     this.commandManager = commandManager;
 }
Esempio n. 2
0
 public HeroCommand(List <string> args, IHeroManager manager) : base(args, manager)
 {
 }
Esempio n. 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;
 }
Esempio n. 6
0
 public HeroController(IHeroManager heroManager)
 {
     HeroManager = heroManager;
 }
Esempio n. 7
0
 public Command(IList <string> args, IHeroManager heroManager)
 {
     this.args        = args;
     this.HeroManager = heroManager;
 }
Esempio n. 8
0
 public HeroCommand(IList <string> parameters, IHeroManager heroManager)
     : base(parameters, heroManager)
 {
 }
Esempio n. 9
0
 protected AbstractCommand(IList <string> parameters, IHeroManager heroManager)
 {
     this.Parameters  = parameters;
     this.HeroManager = heroManager;
 }
Esempio n. 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())
 {
 }
Esempio n. 14
0
 protected AbstractCommand(List <string> args, IHeroManager manager)
 {
     this.Args    = args;
     this.Manager = manager;
 }