Example #1
0
 public CalculateNextPlayer(RobotsTurn robotsTurn, GameHandler gameHandler, BoardGame boardGame, NewTurnHelper newTurnHelper)
 {
     m_GameHandler   = gameHandler;
     m_BoardGameForm = boardGame;
     m_NewTurnHelper = newTurnHelper;
     m_RobotTurns    = robotsTurn;
     player          = gameHandler.player;
     robot1          = gameHandler.robot1;
     robot2          = gameHandler.robot2;
     robot3          = gameHandler.robot3;
 }
Example #2
0
        public RobotsTurn(GameHandler gameHandler, BoardGame boardGame, NewTurnHelper newTurnHelper, UpdateListBoxes updateListBoxes, Level level)
        {
            m_GameHandler     = gameHandler;
            m_BoardGameForm   = boardGame;
            m_NewTurnHelper   = newTurnHelper;
            m_UpdateListBoxes = updateListBoxes;
            m_Level           = level;
            player            = gameHandler.player;
            robot1            = gameHandler.robot1;
            robot2            = gameHandler.robot2;
            robot3            = gameHandler.robot3;

            m_CalculateNextPlayer = new CalculateNextPlayer(this, m_GameHandler, m_BoardGameForm, m_NewTurnHelper);
            m_RobotActionControl  = new RobotActionControl(m_GameHandler, m_BoardGameForm, m_UpdateListBoxes, m_Level);
            m_RobotAbilityHelper  = new RobotAbilityHelper(m_GameHandler, m_BoardGameForm, m_UpdateListBoxes);
        }