Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ParsedRule.ccGo to the documentation of this file.00001 #include "Kodu/Parsing/ParsedRule.h" 00002 00003 namespace Kodu { 00004 00005 ParsedPhrase* ParsedRule::getActionPhrase() { 00006 return action; 00007 } 00008 00009 ParsedPhrase* ParsedRule::getConditionPhrase() { 00010 return condition; 00011 } 00012 00013 unsigned int ParsedRule::getIndentationLevel() { 00014 return indentationLevel; 00015 } 00016 00017 unsigned int ParsedRule::getParentNumber() { 00018 return parentNumber; 00019 } 00020 00021 unsigned int ParsedRule::getRuleNumber() { 00022 return ruleNumber; 00023 } 00024 00025 bool ParsedRule::setActionPhrase(ParsedPhrase* actionPhrase) { 00026 if (actionPhrase != NULL) { 00027 action = actionPhrase; 00028 } 00029 return (action != NULL); 00030 } 00031 00032 bool ParsedRule::setConditionPhrase(ParsedPhrase* conditionPhrase) { 00033 if (conditionPhrase != NULL) { 00034 condition = conditionPhrase; 00035 } 00036 return (condition != NULL); 00037 } 00038 00039 void ParsedRule::setIndentationLevel(unsigned int amount) { 00040 indentationLevel = amount; 00041 } 00042 00043 void ParsedRule::setParentNumber(unsigned int parentId) { 00044 parentNumber = parentId; 00045 } 00046 00047 void ParsedRule::setRuleNumber(unsigned int ruleId) { 00048 ruleNumber = ruleId; 00049 } 00050 } |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:58:45 2016 by Doxygen 1.6.3 |