aboutsummaryrefslogtreecommitdiff
path: root/aoapplication.h
diff options
context:
space:
mode:
Diffstat (limited to 'aoapplication.h')
-rw-r--r--aoapplication.h74
1 files changed, 70 insertions, 4 deletions
diff --git a/aoapplication.h b/aoapplication.h
index e1245607..2a5c4369 100644
--- a/aoapplication.h
+++ b/aoapplication.h
@@ -89,8 +89,7 @@ public:
//reads the theme from config.ini and sets it accordingly
void reload_theme();
- //QString get_theme() {return current_theme;}
-
+ //Returns the character the player has currently selected
QString get_current_char();
//implementation in path_functions.cpp
@@ -106,42 +105,109 @@ public:
QString get_default_background_path();
QString get_evidence_path();
- //implementation in text_file_functions.cpp
+ ////// Functions for reading and writing files //////
+ // Implementations file_functions.cpp
- QString read_file(QString p_path);
+ //Returns the config value for the passed searchline from a properly formatted config ini file
QString read_config(QString searchline);
+
+ //Reads the theme from config.ini and loads it into the current_theme variable
QString read_theme();
+
+ //Returns the blip rate from config.ini
int read_blip_rate();
+
+ //Returns true if blank blips is enabled in config.ini and false otherwise
bool get_blank_blip();
+
+ //Returns the value of default_music in config.ini
int get_default_music();
+
+ //Returns the value of default_sfx in config.ini
int get_default_sfx();
+
+ //Returns the value of default_blip in config.ini
int get_default_blip();
+
+ //Returns the list of words in callwords.ini
QStringList get_call_words();
+
+ //Appends the argument string to serverlist.txt
void write_to_serverlist_txt(QString p_line);
+
+ //Returns the contents of serverlist.txt
QVector<server_type> read_serverlist_txt();
+
+ //Returns the value of p_identifier in the design.ini file in p_design_path
QString read_design_ini(QString p_identifier, QString p_design_path);
+
+ //Returns the coordinates of widget with p_identifier from p_file
QPoint get_button_spacing(QString p_identifier, QString p_file);
+
+ //Returns the dimensions of widget with specified identifier from p_file
pos_size_type get_element_dimensions(QString p_identifier, QString p_file);
+
+ //Returns the value of font_size with p_identifier from p_file
int get_font_size(QString p_identifier, QString p_file);
+
+ //Returns the color with p_identifier from p_file
QColor get_color(QString p_identifier, QString p_file);
+
+ //Returns the sfx with p_identifier from sounds.ini in the current theme path
QString get_sfx(QString p_identifier);
+
+ //Returns the value of p_search_line within target_tag and terminator_tag
QString read_char_ini(QString p_char, QString p_search_line, QString target_tag, QString terminator_tag);
+
+ //Returns the side of the p_char character from that characters ini file
QString get_char_side(QString p_char);
+
+ //Returns the showname from the ini of p_char
QString get_showname(QString p_char);
+
+ //Returns the value of chat from the specific p_char's ini file
QString get_chat(QString p_char);
+
+ //Returns the value of shouts from the specified p_char's ini file
QString get_char_shouts(QString p_char);
+
+ //Returns the preanim duration of p_char's p_emote
int get_preanim_duration(QString p_char, QString p_emote);
+
+ //Same as above, but only returns if it has a % in front(refer to Preanims section in the manual)
int get_ao2_preanim_duration(QString p_char, QString p_emote);
+
+ //Not in use
int get_text_delay(QString p_char, QString p_emote);
+
+ //Returns the name of p_char
QString get_char_name(QString p_char);
+
+ //Returns the total amount of emotes of p_char
int get_emote_number(QString p_char);
+
+ //Returns the emote comment of p_char's p_emote
QString get_emote_comment(QString p_char, int p_emote);
+
+ //Returns the base name of p_char's p_emote
QString get_emote(QString p_char, int p_emote);
+
+ //Returns the preanimation name of p_char's p_emote
QString get_pre_emote(QString p_char, int p_emote);
+
+ //Returns the sfx of p_char's p_emote
QString get_sfx_name(QString p_char, int p_emote);
+
+ //Not in use
int get_sfx_delay(QString p_char, int p_emote);
+
+ //Returns the modifier for p_char's p_emote
int get_emote_mod(QString p_char, int p_emote);
+
+ //Returns the desk modifier for p_char's p_emote
int get_desk_mod(QString p_char, int p_emote);
+
+ //Returns p_char's gender
QString get_gender(QString p_char);
private: