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>(); }
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 }
public FeedAction(User master) : base(master) { //nothing happens }
public BattleAction(User master) : base(master) { }
public Action(User master) { this.master = master; }
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; }
public void createUser(string name = "XNA_user") { this.user = new User(name); }