From 13942345c6a3e7e1625c6c26cc2f2f368a3bff23 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Fri, 17 Apr 2020 21:57:16 -0500 Subject: Run clang-format on entire project Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style. Lines reflow at 80 characters. One-line method bodies are on the same line as the signature. Space always after `//`. No indentation on preprocessor macros. Includes are sorted lexicographically. If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame. --- include/aocharmovie.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'include/aocharmovie.h') diff --git a/include/aocharmovie.h b/include/aocharmovie.h index 6c127a6..6db490b 100644 --- a/include/aocharmovie.h +++ b/include/aocharmovie.h @@ -1,19 +1,17 @@ #ifndef AOCHARMOVIE_H #define AOCHARMOVIE_H -#include -#include -#include +#include "include/aosfxplayer.h" +#include "include/courtroom.h" #include #include +#include +#include #include -#include "include/aosfxplayer.h" -#include "include/courtroom.h" - +#include class AOApplication; -class AOCharMovie : public QLabel -{ +class AOCharMovie : public QLabel { Q_OBJECT public: @@ -24,12 +22,10 @@ public: void play_talking(QString p_char, QString p_emote); void play_idle(QString p_char, QString p_emote); - void set_flipped(bool p_flipped) {m_flipped = p_flipped;} + void set_flipped(bool p_flipped) { m_flipped = p_flipped; } void LoadImageWithStupidMethodForFlipSupport(QImage image); void stop(); - void move(int ax, int ay); - void combo_resize(int w, int h); void play_frame_sfx(); void sfx_two_network_boogaloo(); @@ -42,6 +38,10 @@ public: QString frame_screenshake_hellstring = ""; QString frame_realization_hellstring = ""; bool use_networked_framehell = false; + + void move(int ax, int ay); + void combo_resize(int w, int h); + private: AOApplication *ao_app; @@ -52,14 +52,15 @@ private: QString last_path; QString current_emote; QString current_char; + int default_w; + int default_h; const int time_mod = 62; - // These are the X and Y values before they are fixed based on the sprite's width. + // These are the X and Y values before they are fixed based on the sprite's + // width. int x = 0; int y = 0; - int default_w; - int default_h; bool m_flipped = false; -- cgit