示例#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);
        }
示例#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();
        }
示例#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();
        }
示例#4
0
 public TimeDebuger(Game game)
     : base(game)
 {
     ID = Guid.NewGuid().ToString();
         this.log = new LoggerInstance(typeof(TimeDebuger), ID);
 }