Example #1
0
        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {
            if(roundMgr == null)
                roundMgr = (IRoundManager)Game.Services.GetService(typeof(IRoundManager));

            base.Update(gameTime);
        }
Example #2
0
 public GameEngine(ICardsDealer cardsDealer, ITrickManager trickManager, IRoundManager roundManager, IStatesManager statesManager)
 {
     this.cardsDealer   = cardsDealer;
     this.trickManager  = trickManager;
     this.roundManager  = roundManager;
     this.statesManager = statesManager;
 }
Example #3
0
 public PlayerManager(IRoundRespository repository, IHcpRule rule, IPointsCalulation pointsCalulation, IRoundManager roundManager, ISeriesManager seriesManager)
 {
     RoundRespository = repository;
     Rule             = rule;
     PointCalc        = pointsCalulation;
     RoundManager     = roundManager;
     SeriesManager    = seriesManager;
 }
Example #4
0
 public RoundController(IAccountManager accountManager,
                        IRoundManager roundManager,
                        IGameManager gameManager,
                        IRoundQuestionManager roundQuestionManager)
 {
     _accountManager       = accountManager ?? throw new System.ArgumentNullException(nameof(accountManager));
     _roundManager         = roundManager ?? throw new System.ArgumentNullException(nameof(roundManager));
     _gameManager          = gameManager ?? throw new System.ArgumentNullException(nameof(gameManager));
     _roundQuestionManager = roundQuestionManager ?? throw new System.ArgumentNullException(nameof(roundQuestionManager));
 }
Example #5
0
 public RoundsController(ISeriesManager seriesManager, IRoundManager roundManager)
 {
     SeriesManager = seriesManager;
     RoundManager  = roundManager;
 }
Example #6
0
 public WinCondition(IDataHolder <Entity> entities, IRoundManager roundManager)
 {
     this.entities     = entities;
     this.roundManager = roundManager;
 }
Example #7
0
 public EmitterTrigger(IDataHolder <Entity> entities, IRoundManager roundManager)
 {
     this.entities     = entities;
     this.roundManager = roundManager;
 }
Example #8
0
 public Game(IRoundManager roundManager, IEnumerable<Player> players)
 {
     this.roundManager = roundManager;
     this.players = players;
 }
Example #9
0
 public PlayersController(IRoundManager roundManager, IPlayerManager playerManager, IHcpRule rule)
 {
     RoundManager  = roundManager;
     PlayerManager = playerManager;
     HcpRule       = rule;
 }
Example #10
0
 public RoundResetter(IRoundManager roundManager, IDataHolder <Entity> entities)
 {
     this.roundManager = roundManager;
     this.entities     = entities;
 }
Example #11
0
 public GameManager(Player player, Character monster)
 {
     Player       = player;
     Monster      = monster;
     RoundManager = new RoundManager(Player, Monster);
 }
Example #12
0
 public SeriesManager(IRoundManager roundManager, ISeriesRepository seriesRepository)
 {
     _roundManager     = roundManager;
     _seriesRepository = seriesRepository;
 }
Example #13
0
 public void Construct(IRoundManager roundManager)
 {
     this.roundManager = roundManager;
 }