public PromissoryNote DuplicateFor(Player pOwner)
 {
     PromissoryNote note = new PromissoryNote ();
     note.Name = name;
     note.FlavorText = flavorText;
     note.rulesText = rulesText;
     note.playText = playText;
     note.owner = pOwner;
     return note;
 }
    private PromissoryNote readPNote(string dataType, string dataText, string fileName, StreamReader reader)
    {
        if (dataText == "<{>") {
            PromissoryNote note = new PromissoryNote();
            string line = reader.ReadLine().Trim ();

            do {
                string[] lineParts;
                //Split category name from data
                lineParts = line.Split(":".ToCharArray(), 2);

                //Remove any extra whitespace from parts & set descriptive variables
                string newDataType = gameManager.LanguageMgr.StringToDataType(lineParts[0].Trim ());
                string newDataText = lineParts[1].Trim ();

                if (newDataType == "Name") {
                    note.Name = readTextLine(newDataType, newDataText, fileName);
                } else if (newDataType == "Flavor Text") {
                    note.FlavorText = readTextLine (newDataType, newDataText, fileName);
                } else if (newDataType == "Rule Text") {
                    note.RulesText = readTextLine(newDataType, newDataText, fileName);
                } else if (newDataType == "Play Text") {
                    note.PlayText = readTextLine(newDataType, newDataText, fileName);
                } else if (newDataType == "ID") {
                    note.Id = readTextLine (newDataType, dataText, fileName);
                }
                line = reader.ReadLine().Trim ();
            } while (line != "<}>");
            // End of outermost block

            if (note.Id == default(string)) {
                note.Id = note.Name;
            }

            return note;
        } else {
            throw new System.Exception(string.Format("Error reading file {0}:: got \"{1}\" should be <{>", fileName, dataText));
        }
    }