Exemple #1
0
 public Character()
 {
     ChemicalManager = new ChemicalManager();
     Image           = new Image();
     Battled         = false;
     Name            = QuestName = String.Empty;
     hasParty        = false;
 }
Exemple #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            //TO BE FIXED LATER
            Experience = 0;
            Party      = new ChemicalManager();
        }
Exemple #3
0
 public void LoadRandomContent()
 {
     Image.LoadContent();
     if (!Battled)
     {
         ChemicalManager = new ChemicalManager();
     }
     Image.IsActive = true;
     hasParty       = true;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
 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);
     }
 }
Exemple #6
0
        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();
        }