Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

const WagProperty * Agi::WagFileParser::getProperty ( const WagProperty::WagPropertyCode  code ) const

Get property with the given property code.

Use only after a call to parse() first.
Pointer to the property if its found in memory, NULL otherwise.

TODO/FIXME: Handle cases where several properties with the given property code are found. At the moment we don't need this functionality because the properties we use for fallback detection probably don't have multiples in the WAG-file. TODO: Make this faster than linear time if desired/needed.

Definition at line 215 of file wagparser.cpp.

References _propList.

Referenced by AgiMetaEngine::fallbackDetect().

      for (PropertyList::const_iterator iter = _propList.begin(); iter != _propList.end(); iter++)
            if (iter->getCode() == code) return iter;
      return NULL;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index