AlpacaLibary  1.63
A closed source C++ bot for OSRS
BreakHandler.hpp
Go to the documentation of this file.
1 #ifndef BREAKHANDLER_HPP_INCLUDED
2 #define BREAKHANDLER_HPP_INCLUDED
3 
4 #include "../../Core/Types/Timer.hpp"
5 #include "../../Core/Types/Counter.hpp"
6 #include "../../Core/Types/Countdown.hpp"
7 
8 namespace BreakHandler
9 {
12 
13  bool MiniBreak(bool Logout = true);
14  bool ShortBreak(bool Logout = true);
15  bool LongBreak(bool Logout = true);
16  bool Break(bool LogoutOnLong = true, bool LogoutOnShort = true, bool LogoutOnMini = false);
17 
18  struct BreakTime
19  {
20  std::int64_t TimeOfLastBreak;
21  std::int64_t BreakEvery;
22  std::int64_t BreakFor;
23  bool OnBreak = false;
25  };
26 
30 
31 }
32 
33 #endif // BREAKHANDLER_HPP_INCLUDED
Definition: Timer.hpp:8
bool ShortBreak(bool Logout=true)
bool Break(bool LogoutOnLong=true, bool LogoutOnShort=true, bool LogoutOnMini=false)
bool MiniBreak(bool Logout=true)
Timer GetBreakTimer()
BreakTime GetMiniBreakTime()
bool LongBreak(bool Logout=true)
BreakTime GetShortBreakTime()
BreakTime GetLongBreakTime()
Counter GetBreakCounter()
std::int64_t TimeOfLastBreak