ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Member Functions | List of all members
FF7Achievements Class Reference

Work with achievements.dat. More...

#include <FF7Achievements.h>

Inheritance diagram for FF7Achievements:
Inheritance graph
[legend]
Collaboration diagram for FF7Achievements:
Collaboration graph
[legend]

Public Member Functions

 FF7Achievements ()=default
 
 ~FF7Achievements ()=default
 
Q_INVOKABLE bool openFile (const QString &fileName)
 Attempt to Open a file. Open a file and replace data with its contents. More...
 
Q_INVOKABLE bool saveFile (const QString &fileName)
 Attempt to save a file. Write data to a file. More...
 
Q_INVOKABLE bool achievementUnlocked (int bit)
 is Achievement @ bit unlocked? More...
 
Q_INVOKABLE void setAchievementUnlocked (int bit, bool unlocked)
 set Achievement @ bit to unlocked More...
 
Q_INVOKABLE QString name (int bit)
 Translate name for Achievement bit. More...
 

Detailed Description

Work with achievements.dat.

Todo:
need more icons for the achievements.

Open Edit and Save achievements.dat found with the 2012 Square and 2013 Steam Releases of Final Fantasy VII

Constructor & Destructor Documentation

◆ FF7Achievements()

FF7Achievements::FF7Achievements ( )
default

◆ ~FF7Achievements()

FF7Achievements::~FF7Achievements ( )
default

Member Function Documentation

◆ achievementUnlocked()

bool FF7Achievements::achievementUnlocked ( int  bit)

is Achievement @ bit unlocked?

Parameters
bit(28-63 are valid)
Returns
TRUE for Achievement unlocked
See also
setAchievementUnlocked()

◆ name()

QString FF7Achievements::name ( int  bit)

Translate name for Achievement bit.

Parameters
bit(28-63 are valid)
Returns
Translated QString of Achievement Name.

◆ openFile()

bool FF7Achievements::openFile ( const QString &  fileName)

Attempt to Open a file. Open a file and replace data with its contents.

Parameters
fileNamefile you want to open
Returns
True is successful
See also
saveFile()

◆ saveFile()

bool FF7Achievements::saveFile ( const QString &  fileName)

Attempt to save a file. Write data to a file.

Parameters
fileNamefile you want to open
Returns
TRUE if successful
See also
openFile()

◆ setAchievementUnlocked()

void FF7Achievements::setAchievementUnlocked ( int  bit,
bool  unlocked 
)

set Achievement @ bit to unlocked

Parameters
bit(28-63 are valid)
unlockedTrue for Achievement Unlocked
See also
achievmentUnlocked()

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