xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Aurora::NFOFile Class Reference

#include <nfofile.h>

Collaboration diagram for Aurora::NFOFile:
Collaboration graph
[legend]

Public Member Functions

 NFOFile (Common::SeekableReadStream *stream)
 
 ~NFOFile ()
 
const Common::UStringgetPortrait0 () const
 Get the player portrait. More...
 
const Common::UStringgetPortrait1 () const
 Get the first companions portrait. More...
 
const Common::UStringgetPortrait2 () const
 Get the second companions portrait. More...
 
uint32 getTimePlayed () const
 Get the time played. More...
 
const Common::UStringgetSaveName () const
 Get the area name. More...
 
const Common::UStringgetAreaName () const
 Get the area name. More...
 
const Common::UStringgetPCName () const
 Get the pc name (kotor2 only). More...
 

Private Member Functions

void load (const GFF3Struct &top)
 

Private Attributes

uint32 _timePlayed
 The time this save was actually played. More...
 
Common::UString _saveName
 The save name. More...
 
Common::UString _areaName
 The current area to load. More...
 
Common::UString _pcName
 The name of the pc (kotor2 only). More...
 
Common::UString _portrait0
 The portrait of the pc or solo companion. More...
 
Common::UString _portrait1
 The portrait of the first companion. More...
 
Common::UString _portrait2
 The portrait of the second companion. More...
 

Detailed Description

Definition at line 32 of file nfofile.h.

Constructor & Destructor Documentation

◆ NFOFile()

Aurora::NFOFile::NFOFile ( Common::SeekableReadStream stream)

Definition at line 35 of file nfofile.cpp.

References Aurora::GFF3File::getTopLevel(), kNFOID, and load().

Here is the call graph for this function:

◆ ~NFOFile()

Aurora::NFOFile::~NFOFile ( )

Definition at line 41 of file nfofile.cpp.

Member Function Documentation

◆ getAreaName()

const Common::UString & Aurora::NFOFile::getAreaName ( ) const

Get the area name.

Definition at line 64 of file nfofile.cpp.

References _areaName.

◆ getPCName()

const Common::UString & Aurora::NFOFile::getPCName ( ) const

Get the pc name (kotor2 only).

Definition at line 68 of file nfofile.cpp.

References _pcName.

◆ getPortrait0()

const Common::UString & Aurora::NFOFile::getPortrait0 ( ) const

Get the player portrait.

Definition at line 44 of file nfofile.cpp.

References _portrait0.

◆ getPortrait1()

const Common::UString & Aurora::NFOFile::getPortrait1 ( ) const

Get the first companions portrait.

Definition at line 48 of file nfofile.cpp.

References _portrait1.

◆ getPortrait2()

const Common::UString & Aurora::NFOFile::getPortrait2 ( ) const

Get the second companions portrait.

Definition at line 52 of file nfofile.cpp.

References _portrait2.

◆ getSaveName()

const Common::UString & Aurora::NFOFile::getSaveName ( ) const

Get the area name.

Definition at line 60 of file nfofile.cpp.

References _saveName.

◆ getTimePlayed()

uint32 Aurora::NFOFile::getTimePlayed ( ) const

Get the time played.

Definition at line 56 of file nfofile.cpp.

References _timePlayed.

◆ load()

void Aurora::NFOFile::load ( const GFF3Struct top)
private

Definition at line 72 of file nfofile.cpp.

References _areaName, _pcName, _portrait0, _portrait1, _portrait2, _saveName, _timePlayed, Aurora::GFF3Struct::getString(), and Aurora::GFF3Struct::getUint().

Referenced by NFOFile().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _areaName

Common::UString Aurora::NFOFile::_areaName
private

The current area to load.

Definition at line 61 of file nfofile.h.

Referenced by getAreaName(), and load().

◆ _pcName

Common::UString Aurora::NFOFile::_pcName
private

The name of the pc (kotor2 only).

Definition at line 62 of file nfofile.h.

Referenced by getPCName(), and load().

◆ _portrait0

Common::UString Aurora::NFOFile::_portrait0
private

The portrait of the pc or solo companion.

Definition at line 64 of file nfofile.h.

Referenced by getPortrait0(), and load().

◆ _portrait1

Common::UString Aurora::NFOFile::_portrait1
private

The portrait of the first companion.

Definition at line 65 of file nfofile.h.

Referenced by getPortrait1(), and load().

◆ _portrait2

Common::UString Aurora::NFOFile::_portrait2
private

The portrait of the second companion.

Definition at line 66 of file nfofile.h.

Referenced by getPortrait2(), and load().

◆ _saveName

Common::UString Aurora::NFOFile::_saveName
private

The save name.

Definition at line 60 of file nfofile.h.

Referenced by getSaveName(), and load().

◆ _timePlayed

uint32 Aurora::NFOFile::_timePlayed
private

The time this save was actually played.

Definition at line 58 of file nfofile.h.

Referenced by getTimePlayed(), and load().


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