Ejemplo n.º 1
0
        public static void Initialize()
        {
            // Initialize game window, set's the Global.CurrentScreen
            var gameWindow = new GameWindow(Constants.GameWindowWidth, Constants.GameWindowHeight);

            Add(gameWindow);

            // Initialize map
            var map = new MapWindow(Constants.Map.Width, Constants.Map.Height);

            Add(map);
            map.Initialize();

            // Initialize dialog window
            var dialogWindow = new DialogWindow(Constants.Map.Width, 6);

            Add(dialogWindow);

            // Initialize game over window
            var gameOverWindow = new GameOverWindow(Constants.GameWindowWidth, Constants.GameWindowHeight);

            Add(gameOverWindow);

            // Initialize inventory
            var inventory = new InventoryWindow(Constants.GameWindowWidth / 3, 15);

            Add(inventory);
            inventory.Initialize();

            var fovWindow = new FovWindow(Constants.GameWindowWidth / 3, 12);

            Add(fovWindow);

            IsInitialized = true;
        }
Ejemplo n.º 2
0
 public Player() : base(Constants.Player.Foreground, Color.Transparent, Constants.Player.Character, 1, 1)
 {
     FieldOfViewRadius  = 0;
     InteractionStatus  = false;
     _interaction       = UserInterfaceManager.Get <InteractionWindow>();
     interactionManager = new InteractionManager(_interaction, this);
     _fovObjectsWindow  = UserInterfaceManager.Get <FovWindow>();
     Components.Add(new EntityViewSyncComponent());
 }
Ejemplo n.º 3
0
 public Player() : base(Constants.Player.Foreground, Color.Transparent, Constants.Player.Character, 1, 1)
 {
     FieldOfViewRadius = 0;
     _fovObjectsWindow = UserInterfaceManager.Get <FovWindow>();
     Components.Add(new EntityViewSyncComponent());
 }
Ejemplo n.º 4
0
 public InteractionManager(InteractionWindow interactionWindow, Player player)
 {
     this.interactionWindow = interactionWindow;
     _fovObjectsWindow      = UserInterfaceManager.Get <FovWindow>();
     this.player            = player;
 }