public Inventory(User owner)
        {
            //Tools.Print("{0}'s Inventory was constructed\n", owner);

            //store the owner of the instance
            this.owner = owner;

            //list of all the things in the users inventory
            this.items = new Dictionary<char, Item>();
        }
Example #2
0
        public Pet(User newMaster, string newName, char newGender = 'm')
        {
            this.master = newMaster;
            this.name = newName;
            this.gender = newGender;

            //assign components
            this.mood = new PetMoodComponent(this);
            this.food = new PetFoodComponent(this);
            this.battle = new PetBattleComponent(this);

            //Tools.Print("A new {1} lion was created, named {0}, belonging to {2}\n",
              //  this.name, this.getGender(), this.master.name);
            //constructor method
        }
Example #3
0
 public FeedAction(User master)
     : base(master)
 {
     //nothing happens
 }
Example #4
0
 public BattleAction(User master)
     : base(master)
 {
 }
Example #5
0
 public Action(User master)
 {
     this.master = master;
 }
Example #6
0
 public StatAction(User master)
     : base(master)
 {
     this.master = master;
 }
 /// <summary>
 /// Constructor, assigns a User to owner
 /// </summary>
 /// <param name="owner">the user who owns this pet</param>
 public PetStatusComponent(User owner)
 {
     this.owner = owner;
 }
Example #8
0
 public void createUser(string name = "XNA_user")
 {
     this.user = new User(name);
 }