xoreos  0.0.5
Public Member Functions | Static Private Attributes | List of all members
Engines::Witcher::EngineProbe Class Reference
Inheritance diagram for Engines::Witcher::EngineProbe:
Inheritance graph
[legend]
Collaboration diagram for Engines::Witcher::EngineProbe:
Collaboration graph
[legend]

Public Member Functions

 EngineProbe ()
 
 ~EngineProbe ()
 
Aurora::GameID getGameID () const
 Get the GameID that the probe is able to detect. More...
 
const Common::UStringgetGameName () const
 Return a string of the full game name. More...
 
Aurora::Platform getPlatform () const
 Get the Platform that the probe is able to detect. More...
 
Engines::EnginecreateEngine () const
 Create the respective engine for the GameID. More...
 
bool probe (Common::SeekableReadStream &stream) const
 Check for the game in that file. More...
 
bool probe (const Common::UString &directory, const Common::FileList &rootFiles) const
 Check for the game in that directory, containing these files. More...
 

Static Private Attributes

static const Common::UString kGameName = "The Witcher"
 

Detailed Description

Definition at line 38 of file probes.cpp.

Constructor & Destructor Documentation

◆ EngineProbe()

Engines::Witcher::EngineProbe::EngineProbe ( )
inline

Definition at line 43 of file probes.cpp.

◆ ~EngineProbe()

Engines::Witcher::EngineProbe::~EngineProbe ( )
inlinevirtual

Reimplemented from Engines::EngineProbe.

Definition at line 44 of file probes.cpp.

Member Function Documentation

◆ createEngine()

Engines::Engine* Engines::Witcher::EngineProbe::createEngine ( ) const
inlinevirtual

Create the respective engine for the GameID.

Implements Engines::EngineProbe.

Definition at line 58 of file probes.cpp.

◆ getGameID()

Aurora::GameID Engines::Witcher::EngineProbe::getGameID ( ) const
inlinevirtual

Get the GameID that the probe is able to detect.

Implements Engines::EngineProbe.

Definition at line 46 of file probes.cpp.

References Aurora::kGameIDWitcher.

◆ getGameName()

const Common::UString& Engines::Witcher::EngineProbe::getGameName ( ) const
inlinevirtual

Return a string of the full game name.

Implements Engines::EngineProbe.

Definition at line 50 of file probes.cpp.

References kGameName.

◆ getPlatform()

Aurora::Platform Engines::Witcher::EngineProbe::getPlatform ( ) const
inlinevirtual

Get the Platform that the probe is able to detect.

Implements Engines::EngineProbe.

Definition at line 54 of file probes.cpp.

References Aurora::kPlatformWindows.

◆ probe() [1/2]

bool Engines::Witcher::EngineProbe::probe ( Common::SeekableReadStream stream) const
inlinevirtual

Check for the game in that file.

Implements Engines::EngineProbe.

Definition at line 62 of file probes.cpp.

◆ probe() [2/2]

bool Engines::Witcher::EngineProbe::probe ( const Common::UString directory,
const Common::FileList rootFiles 
) const
inlinevirtual

Check for the game in that directory, containing these files.

Implements Engines::EngineProbe.

Definition at line 66 of file probes.cpp.

References Common::FileList::addDirectory(), Common::FileList::containsGlob(), Common::UString::empty(), and Common::FilePath::findSubDirectory().

Here is the call graph for this function:

Member Data Documentation

◆ kGameName

const Common::UString Engines::Witcher::EngineProbe::kGameName = "The Witcher"
staticprivate

Definition at line 40 of file probes.cpp.

Referenced by getGameName().


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