public GameBoardManagerObject(Level level)
        {
            ObstructedX = level.ObstructedX;
            ObstructedY = level.ObstructedY;
            Traps = new List<TrapObject>();
            moves = 0;
            numtraps = 0;

            MovementInProgress = false;
            Pather = new PathFinder();
            InitialiseBoard();

            TurnManager = new TurnManager();

            LoadLevel(level);

            for (int i = 0; i < Positions.GetLength(0); i++)
            {
                for (int j = 0; j < Positions.GetLength(1); j++)
                {
                    Positions[i, j] = new Vector3F(gap * i + startPos, 0.0f, gap * j + startPos);
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary> Constructor.</summary>
 ///
 /// <param name="name">        The name.</param>
 /// <param name="renderer">    The renderer.</param>
 /// <param name="turnManager"> Manager for turn.</param>
 public MainGameHUD(string name, IUIRenderer renderer, TurnManager turnManager)
     : base(name, renderer)
 {
     TurnManagerObject = turnManager;
 }