Example #1
0
        public CameraDebuger(Game game, Camera2D camera, Range boardRange)
            : base(game)
        {
            this.camera = camera;
            this.boardRange = boardRange;

            ID = Guid.NewGuid().ToString();

            this.log = new LoggerInstance(typeof(CameraDebuger), ID);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GamePadController"/> class.
        /// </summary>
        /// <param name="game">Game that the game component should be attached to.</param>
        public GamePadController(Game game)
            : base(game)
        {
            ID = Guid.NewGuid().ToString();
            log = new LoggerInstance(typeof (GamePadController), ID);

            this.isGamePadActive = new Boolean[4];
            this.gamePads = new GamePadState[4];
            this.gamePadsPrevious = new GamePadState[4];
            this.gamePadDeadZones = new GamePadDeadZone[4];

            //ResetCollections();
        }
Example #3
0
        public Camera2D(Game game)
            : base(game)
        {
            ID = Guid.NewGuid().ToString();
            this.log = new LoggerInstance(typeof(Camera2D), ID);

            if (game == null) {
                this.log.WriteFatalError("game is null!");
                throw new ArgumentNullException("game");
            }

            GraphicsDevice = game.GraphicsDevice;
            CustomControls = false;

            RecalculateParameters();
        }
Example #4
0
 public TimeDebuger(Game game)
     : base(game)
 {
     ID = Guid.NewGuid().ToString();
         this.log = new LoggerInstance(typeof(TimeDebuger), ID);
 }