public GatherableManager(TileMaps.TilemapManager mapManager, InventoryManager invenManager, ContentManager content, GameObjects.Player player) { _GatherableListActive = new List <Gatherable>(); _GatherableListInActive = new List <Gatherable>(); PlantList = new List <Plant>(); _InventoryManager = invenManager; Content = content; thePlayer = player; _TilemapManager = mapManager; }
public NPCManager(TileMaps.TilemapManager tMapManager, ContentManager content, GameObjects.Player player, DialogManager dm, InventoryManager im, WorldObjectManager wom) { _SpriteListActive = new List <NPC>(); _SpriteListDead = new List <NPC>(); _ProjectileList = new List <Projectile>(); _TilemapManager = tMapManager; _DialogManager = dm; _Content = content; _InventoryManager = im; _WorldObjectManager = wom; thePlayer = player; }
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); }