PARALLACTION: Simplify text comparisons in dialogue code.
Encapsulate text comparison into string owners and removed some ugly double negative logic. svn-id: r55605
This commit is contained in:
parent
c3698a2cd5
commit
e1046d3eae
3 changed files with 13 additions and 3 deletions
|
@ -258,6 +258,10 @@ Answer::Answer() {
|
|||
_hasCounterCondition = false;
|
||||
}
|
||||
|
||||
bool Answer::textIsNull() {
|
||||
return (_text.equalsIgnoreCase("NULL"));
|
||||
}
|
||||
|
||||
Question::Question(const Common::String &name) : _name(name), _mood(0) {
|
||||
memset(_answers, 0, sizeof(_answers));
|
||||
}
|
||||
|
@ -268,6 +272,10 @@ Question::~Question() {
|
|||
}
|
||||
}
|
||||
|
||||
bool Question::textIsNull() {
|
||||
return (_text.equalsIgnoreCase("NULL"));
|
||||
}
|
||||
|
||||
Instruction::Instruction() {
|
||||
_index = 0;
|
||||
_flags = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue