SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | List of all members
GraphicsRestrictions::Rule Class Reference
Inheritance diagram for GraphicsRestrictions::Rule:
Inheritance graph
[legend]

Public Member Functions

 Rule (const XMLNode *rule)
 
void addVersion (std::string version)
 
bool applies (const std::string &card, const Version &version, const std::string &vendor) const
 
const std::vector< std::string > & getRestrictions () const
 Returns a list of options to disable.
 

Private Types

enum  { CARD_IGNORE , CARD_IS , CARD_CONTAINS }
 Operators to test for a card.
 
enum  VersionTest {
  VERSION_IGNORE , VERSION_EQUAL , VERSION_LESS , VERSION_LESS_EQUAL ,
  VERSION_MORE , VERSION_MORE_EQUAL
}
 Operators to test version numbers with.
 

Private Attributes

enum GraphicsRestrictions::Rule:: { ... }  m_card_test
 Operators to test for a card.
 
std::string m_card_name
 Name of the card for which this rule applies.
 
std::vector< VersionTestm_version_tests
 
std::vector< Versionm_driver_versions
 Driver version for which this rule applies.
 
std::string m_os
 For which OS this rule applies.
 
std::string m_vendor
 For which vendor this rule applies.
 
std::vector< std::string > m_disable_options
 Which options to disable.
 

The documentation for this class was generated from the following file: