Exemplo n.º 1
0
        //===================================================================//
        //                           Variables                               //
        //===================================================================//
        // none yet
        //===================================================================//
        //                         Constructors                              //
        //===================================================================//
        /// <summary>
        /// Creates a new <see cref="Clothes"/> object belonging to the specified <see cref="Person"/>.
        /// </summary>
        /// <param name="owner">the <see cref="Person"/> to whom the <see cref="Clothes"/> belong</param>
        public Clothes(Person owner)
            : base(owner.GetName() + "'s clothes",
			"The clothes that " + owner.GetName() + " is wearing.",
			parsedNames:new string[0],
			isProper: true, canBeTaken: false)
        {
            this.SetOwner(owner);
        }
Exemplo n.º 2
0
 //===================================================================//
 //                         Constructors                              //
 //===================================================================//
 /// <summary>
 /// Creates a new <see cref="Clothes"/> object belonging to the specified <see cref="Person"/>.
 /// </summary>
 /// <param name="owner">the <see cref="Person"/> to whom the <see cref="Clothes"/> belong</param>
 public Clothes(Person owner)
     : base(owner.GetName() + "'s clothes", "The clothes that " + owner.GetName() + " is wearing.", isProper: true, canBeTaken: false)
 {
     this.owner = owner;
 }