Ejemplo n.º 1
0
 public DungeonGame(IGameHost gameHost,
                    IConsoleOutputService consoleOut,
                    IUserPromptService userPrompt,
                    ISoundPlayerService soundPlayer) :
     base(gameHost, consoleOut, userPrompt, soundPlayer)
 {
 }
Ejemplo n.º 2
0
 public Troll(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, string name, string desc) :
     base(consoleOut, soundPlayer)
 {
     this.Name = name;
     this.desc = desc;
     this.AddToInventory(new BareHands(this.consoleOut, this.soundPlayer, 7));
 }
Ejemplo n.º 3
0
 public TreasureChest(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, int value)
 {
     this.consoleOut  = consoleOut;
     this.soundPlayer = soundPlayer;
     this.Name        = "TreasureChest";
     this.Value       = value;
 }
Ejemplo n.º 4
0
 public BattleAxe(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer,
                  string name = "BattleAxe", int maxDamage = 15) :
     base(consoleOut, soundPlayer)
 {
     this.Name      = name;
     this.MaxDamage = maxDamage;
 }
Ejemplo n.º 5
0
 public BroadSword(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer,
                   string name = "BroadSword", int maxDamage = 14) :
     base(consoleOut, soundPlayer)
 {
     this.Name      = name;
     this.MaxDamage = maxDamage;
 }
Ejemplo n.º 6
0
 public Dagger(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer,
               string name = "Dagger", int maxDamage = 10) :
     base(consoleOut, soundPlayer)
 {
     this.Name      = name;
     this.MaxDamage = maxDamage;
 }
Ejemplo n.º 7
0
 public Staff(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer,
              string name = "Staff", int maxDamage = 6) :
     base(consoleOut, soundPlayer)
 {
     this.Name      = name;
     this.MaxDamage = maxDamage;
 }
Ejemplo n.º 8
0
 public Character(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer)
 {
     this.consoleOut  = consoleOut;
     this.soundPlayer = soundPlayer;
     this.health      = 100;
     this.pos         = GameBoard.Position.Undefined;
     this.inventory   = new ObservableCollection <InventoryItem>();
 }
Ejemplo n.º 9
0
 public DungeonBoard(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, IUserPromptService userPrompt, string mapName) :
     base(NumRows, NumColumns)
 {
     this.consoleOut  = consoleOut;
     this.soundPlayer = soundPlayer;
     this.userPrompt  = userPrompt;
     this.mapName     = mapName;
 }
Ejemplo n.º 10
0
        public Room(IConsoleOutputService consoleOut)
        {
            this.consoleOut = consoleOut;

            this.Items      = new List <InventoryItem>();
            this.Characters = new List <Character>();
            this.Features   = new List <RoomFeature>();
            this.Visitors   = new List <Character>();
        }
        public static ICommand Create(IConsoleOutputService outputService, string projectFilePath, string parentSubPath, string newFolderName)
        {
            var cmd = new AddFolderCommand();

            cmd._outputService   = outputService;
            cmd._projectFilePath = projectFilePath;
            cmd._parentSubPath   = parentSubPath;
            cmd._newFolderName   = newFolderName;

            return(cmd);
        }
        public static ICommand Create(IConsoleOutputService outputService, string projectFilePath, string parentSubPath, string fileName)
        {
            var cmd = new DeleteDocumentCommand();

            cmd._outputService   = outputService;
            cmd._projectFilePath = projectFilePath;
            cmd._parentSubPath   = parentSubPath;
            cmd._fileName        = fileName;

            return(cmd);
        }
Ejemplo n.º 13
0
 public TexasHoldem(
     IPlayerCreatorService playerCreator,
     IDetermineDealerService determineDealerService,
     IPlayRoundService playRoundService,
     IConsoleOutputService consoleOutputService)
 {
     _playerCreator          = playerCreator;
     _determineDealerService = determineDealerService;
     _playRoundService       = playRoundService;
     _consoleOutputService   = consoleOutputService;
 }
Ejemplo n.º 14
0
        public static ICommand Create(IConsoleOutputService outputService, string projectFilePath, string parentSubPath, string workflowName)
        {
            var cmd = new AddWorkflowCommand();

            cmd._outputService   = outputService;
            cmd._projectFilePath = projectFilePath;
            cmd._parentSubPath   = parentSubPath;
            cmd._workflowName    = workflowName;

            return(cmd);
        }
Ejemplo n.º 15
0
        public static AddLayoutCommand Create(IConsoleOutputService outputService, string projectFilePath, string parentSubPath, string layoutName)
        {
            var cmd = new AddLayoutCommand();

            cmd._outputService   = outputService;
            cmd._projectFilePath = projectFilePath;
            cmd._parentSubPath   = parentSubPath;
            cmd._layoutName      = layoutName;

            return(cmd);
        }
Ejemplo n.º 16
0
        public Game(IGameHost gameHost,
                    IConsoleOutputService consoleOut,
                    IUserPromptService userPrompt,
                    ISoundPlayerService soundPlayer)
        {
            this.gameHost    = gameHost;
            this.consoleOut  = consoleOut;
            this.userPrompt  = userPrompt;
            this.soundPlayer = soundPlayer;

            this.mapName = null;
            this.Reset();
        }
        public static ICommand Create(IConsoleOutputService outputService, string projectFilePath, string currentName, string newName, Project project, Action <string, Project> saveProjectAction)
        {
            var cmd = new RenameModuleCommand();

            cmd._project           = project;
            cmd._outputService     = outputService;
            cmd._projectFilePath   = projectFilePath;
            cmd._currentName       = currentName;
            cmd._newName           = newName;
            cmd._saveProjectAction = saveProjectAction;

            return(cmd);
        }
Ejemplo n.º 18
0
 public PlayRoundService(
     IBettingService bettingService,
     IPlayerParticipationService playerParticipationService,
     IDealCardService dealCardService,
     IPlayerActionService actionService,
     IWinnerService winnerService,
     IConsoleOutputService consoleOutputService)
 {
     _bettingService             = bettingService;
     _playerParticipationService = playerParticipationService;
     _dealCardService            = dealCardService;
     _actionService        = actionService;
     _winnerService        = winnerService;
     _consoleOutputService = consoleOutputService;
 }
 public ProjectServiceImpl(IConsoleOutputService outputService, IMessageService messageService)
 {
     _outputService  = outputService;
     _messageService = messageService;
 }
Ejemplo n.º 20
0
 public PowerUp(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer) :
     base(consoleOut, soundPlayer)
 {
     this.Name         = "PowerUp";
     this.HealthPoints = 10;
 }
Ejemplo n.º 21
0
 public WaterPool(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer)
 {
     this.consoleOut  = consoleOut;
     this.soundPlayer = soundPlayer;
     this.Name        = "Pool";
 }
Ejemplo n.º 22
0
 public Flask(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer) :
     base(consoleOut, soundPlayer)
 {
     this.consoleOut = consoleOut;
     this.Name       = "Flask";
 }
Ejemplo n.º 23
0
 public Rune(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, string name, string text) :
     base(consoleOut, soundPlayer)
 {
     this.Name = name;
     this.text = text;
 }
Ejemplo n.º 24
0
 public GoldCoin(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, int value = 1) :
     base(consoleOut, soundPlayer)
 {
     this.Name  = "GoldCoin";
     this.Value = value;
 }
Ejemplo n.º 25
0
 public CoinPurse(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer) :
     base(consoleOut, soundPlayer)
 {
     this.Name = "Purse";
 }
Ejemplo n.º 26
0
 public Water(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer) :
     base(consoleOut, soundPlayer)
 {
     this.Name = "Water";
 }
Ejemplo n.º 27
0
 public InventoryItem(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer)
 {
     this.consoleOut  = consoleOut;
     this.soundPlayer = soundPlayer;
 }
Ejemplo n.º 28
0
 public NeutralCharacter(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, string name, string desc) :
     base(consoleOut, soundPlayer)
 {
     this.Name = name;
     this.desc = desc;
 }
Ejemplo n.º 29
0
 public Dwarf(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, string name, string desc) :
     base(consoleOut, soundPlayer, name, desc)
 {
 }
Ejemplo n.º 30
0
 public Friend(IConsoleOutputService consoleOut, ISoundPlayerService soundPlayer, string name, string desc) :
     base(consoleOut, soundPlayer)
 {
     this.Name = name;
     this.desc = desc;
 }