ff7tk  0.02
Toolkit for making FF7 Tools
FF7Achievements Class Reference

Work with achievements.dat. More...

#include <FF7Achievements.h>

Inheritance diagram for FF7Achievements:

Public Member Functions

 FF7Achievements (QObject *parent=0)
 Create a new FF7 Achievements. More...
 
bool openFile (QString fileName="")
 Attempt to Open a file. More...
 
bool saveFile (QString fileName="")
 Attempt to save a file. More...
 
bool achievmentUnlocked (int bit)
 is Achievement @ bit unlocked? More...
 
void setAchievementUnlocked (int bit, bool unlocked)
 set Achievement @ bit to unlocked More...
 
QString name (int bit)
 Translate name for Achievement bit. More...
 

Private Attributes

QByteArray Achievements
 

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

Definition at line 28 of file FF7Achievements.h.

Constructor & Destructor Documentation

FF7Achievements::FF7Achievements ( QObject *  parent = 0)
explicit

Create a new FF7 Achievements.

Creates a new FF7Achievements object with data set to an 8byte file of 0x00

Definition at line 21 of file FF7Achievements.cpp.

References Achievements.

Member Function Documentation

bool FF7Achievements::achievmentUnlocked ( int  bit)

is Achievement @ bit unlocked?

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

Definition at line 60 of file FF7Achievements.cpp.

References Achievements.

Referenced by AchievementEditor::openFile().

QString FF7Achievements::name ( int  bit)

Translate name for Achievement bit.

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

Definition at line 70 of file FF7Achievements.cpp.

Referenced by AchievementEditor::initDisplay().

bool FF7Achievements::openFile ( 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()

Definition at line 27 of file FF7Achievements.cpp.

References Achievements.

Referenced by AchievementEditor::openFile().

bool FF7Achievements::saveFile ( 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()

Definition at line 43 of file FF7Achievements.cpp.

References Achievements.

Referenced by AchievementEditor::saveFile().

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()

Definition at line 62 of file FF7Achievements.cpp.

References Achievements.

Referenced by AchievementEditor::itemToggled().

Member Data Documentation

QByteArray FF7Achievements::Achievements
private

Hold our Achievements.dat

Definition at line 74 of file FF7Achievements.h.

Referenced by achievmentUnlocked(), FF7Achievements(), openFile(), saveFile(), and setAchievementUnlocked().


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