Example #1
0
 public override bool combine(Tool other)
 {
     if (other is ChangeBooleanValueTool)
     {
         ChangeBooleanValueTool cnt = (ChangeBooleanValueTool)other;
         if (cnt.getName.Equals(getName) && cnt.setName.Equals(setName) && data == cnt.data)
         {
             newValue  = cnt.newValue;
             timeStamp = cnt.timeStamp;
             return(true);
         }
     }
     return(false);
 }
        public void setKeepShowing(bool keepShowing)
        {
            Tool tool = new ChangeBooleanValueTool(adventureData, keepShowing, "isKeepShowing", "setKeepShowing");

            Controller.getInstance().addTool(tool);
        }
        public void setCommentaries(bool commentaries)
        {
            Tool tool = new ChangeBooleanValueTool(adventureData, commentaries, "isCommentaries", "setCommentaries");

            Controller.getInstance().addTool(tool);
        }