Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Persons = {};
- Persons.Females = {};
- Persons.Females.Julie = function (_mood)
- {
- /// <param name="_mood">Mood of Julie</param>
- /// <summary>Constructor function: Julie, a 22 year old female</summary>
- /// <returns>New instance of Julie</returns>
- var breasts, thighs, stomach; // Private variables
- this.mood = _mood; // Public variable
- function accessBodypart(_bodypart) // Private function
- {
- /// <param name="_bodypart">Bodypart to access</param>
- }
- this.access = function (_bodypart, _accessee) // Privileged function
- {
- /// <param name="_bodypart">Access a bodypart on Julie</param>
- /// <param name="_accessee">Person accessing Julie</param>
- /// <summary>If you have sufficient rights, you may use this
- /// function</summary>
- /// <returns>Julie's reaction</returns>
- if (_accessee.status === "boyfriend")
- {
- accessBodypart(_bodypart);
- return "Giggles";
- }
- return "Slap in the face";
- };
- };
- var happyJulie = Persons.Females.Julie("happy");
- happyJulie.access("breasts");
Add Comment
Please, Sign In to add comment