xoreos  0.0.5
Public Member Functions | Static Private Attributes | List of all members
Engines::NWN2::EngineProbe Class Reference
Inheritance diagram for Engines::NWN2::EngineProbe:
Inheritance graph
[legend]
Collaboration diagram for Engines::NWN2::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...
 
Engines::EnginecreateEngine () const
 Create the respective engine for the GameID. More...
 
Aurora::Platform getPlatform () const
 Get the Platform that the probe is able to detect. 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 = "Neverwinter Nights 2"
 

Detailed Description

Definition at line 37 of file probes.cpp.

Constructor & Destructor Documentation

◆ EngineProbe()

Engines::NWN2::EngineProbe::EngineProbe ( )
inline

Definition at line 42 of file probes.cpp.

◆ ~EngineProbe()

Engines::NWN2::EngineProbe::~EngineProbe ( )
inlinevirtual

Reimplemented from Engines::EngineProbe.

Definition at line 43 of file probes.cpp.

Member Function Documentation

◆ createEngine()

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

Create the respective engine for the GameID.

Implements Engines::EngineProbe.

Definition at line 53 of file probes.cpp.

◆ getGameID()

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

Get the GameID that the probe is able to detect.

Implements Engines::EngineProbe.

Definition at line 45 of file probes.cpp.

References Aurora::kGameIDNWN2.

◆ getGameName()

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

Return a string of the full game name.

Implements Engines::EngineProbe.

Definition at line 49 of file probes.cpp.

References kGameName.

◆ getPlatform()

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

Get the Platform that the probe is able to detect.

Implements Engines::EngineProbe.

Definition at line 57 of file probes.cpp.

References Aurora::kPlatformWindows.

◆ probe() [1/2]

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

Check for the game in that file.

Implements Engines::EngineProbe.

Definition at line 61 of file probes.cpp.

◆ probe() [2/2]

bool Engines::NWN2::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 65 of file probes.cpp.

References Common::FileList::contains().

Here is the call graph for this function:

Member Data Documentation

◆ kGameName

const Common::UString Engines::NWN2::EngineProbe::kGameName = "Neverwinter Nights 2"
staticprivate

Definition at line 39 of file probes.cpp.

Referenced by getGameName().


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