diff --git a/public/blah/log.h b/public/blah/log.h index 297b2b7..bf3ead0 100644 --- a/public/blah/log.h +++ b/public/blah/log.h @@ -1,6 +1,6 @@ #pragma once -// Error / Abort +// error / abort #ifdef DEBUG #include @@ -20,8 +20,9 @@ #endif -#ifndef BLAH_MAX_MESSAGE -#define BLAH_MAX_MESSAGE 1024 +// maximum length of a print/warn/error message +#ifndef BLAH_MESSAGE +#define BLAH_MESSAGE 1024 #endif namespace Blah diff --git a/public/blah/time.h b/public/blah/time.h index e4741e7..8737b54 100644 --- a/public/blah/time.h +++ b/public/blah/time.h @@ -20,15 +20,25 @@ namespace Blah // time the application should pause for static float pause_timer; + // pauses the entire application for the given time static void pause_for(float time); + // returns true on the given time interval static bool on_interval(float time, float delta, float interval, float offset = 0); + + // returns true on the given time interval static bool on_interval(float delta, float interval, float offset = 0); + + // returns true on the given time interval static bool on_interval(float interval, float offset = 0); + // returns true when the given timestamp is passed static bool on_time(float time, float timestamp); + // returns true between time intervals static bool between_interval(float time, float interval, float offset = 0); + + // returns true between time intervals static bool between_interval(float interval, float offset = 0); }; } \ No newline at end of file