public Character() { ChemicalManager = new ChemicalManager(); Image = new Image(); Battled = false; Name = QuestName = String.Empty; hasParty = false; }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; //TO BE FIXED LATER Experience = 0; Party = new ChemicalManager(); }
public void LoadRandomContent() { Image.LoadContent(); if (!Battled) { ChemicalManager = new ChemicalManager(); } Image.IsActive = true; hasParty = true; }
public void LoadContent(string path) { Image.LoadContent(); Image.IsActive = true; if (Battled == false) { XmlManager <ChemicalManager> chemicalManagerLoader = new XmlManager <ChemicalManager>(); ChemicalManager = chemicalManagerLoader.Load(path); ChemicalManager.LoadContent(); } hasParty = true; }
public void Update(GameTime gameTime, ref Player player) { if (!isTransitioning) { menu.Update(gameTime); } Transition(gameTime); chemicalManager = player.ChemicalManager; itemManager = player.ItemManager; characterManager = player.CharacterManager; foreach (Image i in infoImage) { i.Update(gameTime); } }
public void LoadContent() { Image.LoadContent(); XmlManager <ChemicalManager> chemicalManagerLoader = new XmlManager <ChemicalManager>(); XmlManager <ItemManager> itemManagerLoader = new XmlManager <ItemManager>(); XmlManager <CharacterManager> characterManagerLoader = new XmlManager <CharacterManager>(); //if Party/Backpack saves exist, load Save files here ChemicalManager = chemicalManagerLoader.Load("Content/Load/Gameplay/Party.xml"); ItemManager = itemManagerLoader.Load("Content/Load/Gameplay/Backpack.xml"); CharacterManager = characterManagerLoader.Load("Content/Load/Gameplay/Character/IntroWorld.xml"); ChemicalManager.LoadContent(); ItemManager.LoadContent(); CharacterManager.LoadContent(); }