Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
KoduPage.ccGo to the documentation of this file.00001 #include "KoduPage.h" 00002 00003 namespace Kodu { 00004 00005 void KoduPage::addKoduRule(KoduRule* newRule) { 00006 if (newRule == NULL) 00007 return; 00008 rules.push_back(newRule); 00009 } 00010 00011 unsigned int KoduPage::getPageNumber() const { 00012 return pageNumber; 00013 } 00014 00015 KoduRule* KoduPage::getRule(unsigned int number) { 00016 return getRuleInPos(number - 1); 00017 } 00018 00019 unsigned int KoduPage::getRuleCount() const { 00020 return rules.size(); 00021 } 00022 00023 KoduRule* KoduPage::getRuleInPos(unsigned int pos) { 00024 if (pos < getRuleCount()) 00025 return rules[pos]; 00026 else 00027 return NULL; 00028 } 00029 /* 00030 const std::vector<std::string>& KoduPage::getObjectDescriptors() const { 00031 return objectColors; 00032 } 00033 00034 void KoduPage::addObjectDescriptor(const std::string& descriptor) { 00035 objectColors.push_back(descriptor); 00036 } 00037 */ 00038 void KoduPage::setPageRequiresVision(bool bval) { 00039 pageRequiresVision = bval; 00040 } 00041 00042 bool KoduPage::requiresVision() const { 00043 return pageRequiresVision; 00044 // return (objectColors.size() > 0); 00045 } 00046 } |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:58:43 2016 by Doxygen 1.6.3 |