Ejemplo n.º 1
0
        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>();
        }
Ejemplo n.º 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
        }
Ejemplo n.º 3
0
 public FeedAction(User master)
     : base(master)
 {
     //nothing happens
 }
Ejemplo n.º 4
0
 public BattleAction(User master)
     : base(master)
 {
 }
Ejemplo n.º 5
0
 public Action(User master)
 {
     this.master = master;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 8
0
 public void createUser(string name = "XNA_user")
 {
     this.user = new User(name);
 }