ff7tk  0.02
Toolkit for making FF7 Tools
FF7Achievements.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2013 -2016 Chris Rizzitello <sithlord48@gmail.com> //
3 // //
4 // This file is part of FF7tk //
5 // //
6 // FF7tk is free software: you can redistribute it and/or modify //
7 // it under the terms of the GNU General Public License as published by //
8 // the Free Software Foundation, either version 3 of the License, or //
9 // (at your option) any later version. //
10 // //
11 // FF7tk is distributed in the hope that it will be useful, //
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14 // GNU General Public License for more details. //
15 /****************************************************************************/
16 
17 #ifndef FF7ACHIEVEMENTS_H
18 #define FF7ACHIEVEMENTS_H
19 #include <QObject>
28 class FF7Achievements : public QObject
29 {
30  Q_OBJECT
31  public:
36  explicit FF7Achievements(QObject *parent = 0);
37 
44  bool openFile(QString fileName="");
45 
52  bool saveFile(QString fileName="");
53 
59  bool achievmentUnlocked(int bit);
60 
66  void setAchievementUnlocked(int bit,bool unlocked);
67 
72  QString name(int bit);
73  private:
74  QByteArray Achievements;
75 };
76 #endif // FF7ACHIEVEMENTS_H
bool saveFile(QString fileName="")
Attempt to save a file.
QString name(int bit)
Translate name for Achievement bit.
bool achievmentUnlocked(int bit)
is Achievement @ bit unlocked?
QByteArray Achievements
void setAchievementUnlocked(int bit, bool unlocked)
set Achievement @ bit to unlocked
bool openFile(QString fileName="")
Attempt to Open a file.
Work with achievements.dat.
FF7Achievements(QObject *parent=0)
Create a new FF7 Achievements.