public UserController(User user, ClientNetworkManager networkManager)
        {
            this.user = user;
            this.networkManager = networkManager;

            keyMappings = new Dictionary<Keys, Ship.Action>();

            previousKeyboardState = Keyboard.GetState();

            commands = new List<UserCommand>();
        }
Ejemplo n.º 2
0
        public Game()
        {
            world = new World();
            user = new User();
            networkManager = new ClientNetworkManager(world, user);
            worldView = new WorldView(world, user);
            userController = new UserController(user, networkManager);
            networkManager.UserController = userController;

            _graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
        }