Exemplo n.º 1
0
        public SageyMainScene(ContentManager c, SceneManager sm, ArmadaCamera ca) : base(c, sm, ca)
        {
            this._Name             = "Sagey";
            _Content.RootDirectory = "Content/Scenes/Sagey";
            player              = new GameObjects.Player();
            _UIManager          = new ArmadaEngine.UI.UIManager(_Content);
            _QuestManager       = new QuestManager();
            _MapManager         = new  TileMaps.TilemapManager();
            _DialogManager      = new Managers.DialogManager(_QuestManager);
            _EventManager       = new EventManager(_QuestManager);
            _ItemManager        = new Managers.ItemManager(_Content);
            _InvenManager       = new Managers.InventoryManager(_ItemManager);
            _BankManager        = new Managers.BankManager(_ItemManager, _InvenManager);
            _WorldObjectManager = new Managers.WorldObjectManager(_MapManager, _InvenManager, _Content, player, _ItemManager);
            _NPCManager         = new Managers.NPCManager(_MapManager, _Content, player, _DialogManager, _InvenManager, _WorldObjectManager);
            _GatherableManager  = new Managers.GatherableManager(_MapManager, _InvenManager, _Content, player);
            _ChemistryManager   = new Managers.ChemistryManager(_InvenManager, _WorldObjectManager, _NPCManager, _Content, _ItemManager);

            _PlayerManager = new Managers.PlayerManager(player, _InvenManager, _WorldObjectManager, _NPCManager, _MapManager, _GatherableManager);
            _WorldObjectManager.SetGatherManager(_GatherableManager);
            //kbHandler = new KbHandler();

            _SelectedSprite = new Sprite();

            //InputHelper.Init();

            //_TestCamera = new TestCamera(GraphicsDevice);

            //EVENTS
            _DialogManager.BankOpened  += HandleBankOpened;
            _PlayerManager.BankOpened  += HandleBankOpened;
            _PlayerManager.PlayerMoved += HandlePlayerMoved;

            _BankManager.AttachEvents(_EventManager);
            _NPCManager.AttachEvents(_EventManager);
            _ChemistryManager.AttachEvents(_EventManager);
            _WorldObjectManager.AttachEvents(_EventManager);
            _GatherableManager.AttachEvents(_EventManager);
        }
Exemplo n.º 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            _Camera     = new ArmadaCamera(GraphicsDevice);
            // TODO: use this.Content to load your game content here
            //TestScene ts = new TestScene(Content, _SM, _Camera);
            //_SM.AddScene(ts);

            //SceneTwo st = new SceneTwo(Content, _SM, _Camera);
            //_SM.AddScene(st);

            //tmTestScene tm = new tmTestScene(Content, _SM, _Camera);
            //_SM.AddScene(tm);

            Scenes.Mega.MegaScene ms = new Scenes.Mega.MegaScene(Content, _SM, _Camera);
            _SM.AddScene(ms);

            //ParticleTestScene pts = new ParticleTestScene(Content, _SM, _Camera);
            //_SM.AddScene(pts);
            ////_SM.ActivateScene("Particle Test");

            Scenes.mm.mmScene mm = new Scenes.mm.mmScene(Content, _SM, _Camera);
            _SM.AddScene(mm);
            //_SM.ActivateScene("mm");

            Scenes.Sagey.SageyMainScene _sagey = new Scenes.Sagey.SageyMainScene(Content, _SM, _Camera);
            _SM.AddScene(_sagey);
            //_SM.ActivateScene("Sagey");

            Scenes.Stest.StestScene _sscene = new Scenes.Stest.StestScene(Content, _SM);
            _SM.AddScene(_sscene);
            //_SM.ActivateScene("Shader test");
            _SM.ActivateScene("Sagey");
            _Camera._Position = new Vector2(GraphicsDevice.Viewport.Width / 2, GraphicsDevice.Viewport.Height / 2);
        }
Exemplo n.º 3
0
 public Scene(ContentManager c, SceneManager sm, ArmadaCamera ca = null)
 {
     _Content = c;
     _SM      = sm;
     _Camera  = ca;
 }
Exemplo n.º 4
0
 public StestScene(ContentManager c, SceneManager sm, ArmadaCamera ca = null) : base(c, sm, ca)
 {
     this._Name = "Shader test";
 }