]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/cpp_api/s_player.h
Cleanup various headers to reduce compilation times (#6255)
[dragonfireclient.git] / src / script / cpp_api / s_player.h
index 2e4dc222270569dd865a0f5e7d6bd78b48da11f0..9b4611f9ec7b75848ab3cdb252936b18b98f7945 100644 (file)
@@ -26,8 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 struct ToolCapabilities;
 
-class ScriptApiPlayer
-               : virtual public ScriptApiBase
+class ScriptApiPlayer : virtual public ScriptApiBase
 {
 public:
        virtual ~ScriptApiPlayer();
@@ -36,17 +35,16 @@ class ScriptApiPlayer
        void on_dieplayer(ServerActiveObject *player);
        bool on_respawnplayer(ServerActiveObject *player);
        bool on_prejoinplayer(const std::string &name, const std::string &ip,
-               std::string *reason);
+                       std::string *reason);
        void on_joinplayer(ServerActiveObject *player);
-       void on_leaveplayer(ServerActiveObject *player);
+       void on_leaveplayer(ServerActiveObject *player, bool timeout);
        void on_cheat(ServerActiveObject *player, const std::string &cheat_type);
-       bool on_punchplayer(ServerActiveObject *player,
-               ServerActiveObject *hitter, float time_from_last_punch,
-               const ToolCapabilities *toolcap, v3f dir, s16 damage);
+       bool on_punchplayer(ServerActiveObject *player, ServerActiveObject *hitter,
+                       float time_from_last_punch, const ToolCapabilities *toolcap,
+                       v3f dir, s16 damage);
        s16 on_player_hpchange(ServerActiveObject *player, s16 hp_change);
        void on_playerReceiveFields(ServerActiveObject *player,
-               const std::string &formname, const StringMap &fields);
+                       const std::string &formname, const StringMap &fields);
 };
 
-
 #endif /* S_PLAYER_H_ */