@Override public String getFunction() { return "addBranch(\\\"" + chapter.getMessage().substring(1, chapter.getMessage().length() - 1) + "\\\", \\\"" + chapter.getC().toLowerCase() + "\\\"); "; }
@Override public String convertToJS() { String s = new String(); s += "{speaker:\"\", message:\"\", commands:\"addBranch(\\\"" + chapter.getMessage() + "\\\", \\\"" + chapter.getC().toLowerCase() + "\\\"); "; s += "\"}"; return s; }