 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
#define BLAM
Definition: tick.h:7
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
BLAM void TickThread()
Function containing the tick loop.
Definition: tick.cpp:67
unsigned char uint8_t
Definition: stdint.h:15
BLAM void ResumeTickLoop()
Resumes the tick loop if it has been paused.
Definition: tick.cpp:127
BLAM int MaxTicksPerSecond()
Retrieves the maximum number of ticks per second.
Definition: tick.cpp:152
BLAM void SetCurrentTickRate(int tickrate)
Stops the game tick, updates the tick rate, and re-starts the game tick.
Definition: tick.cpp:157
void doTick()
Fires a #Blam::Events::TickEvent event to inform all listeners to update based on the game tick.
Definition: tick.cpp:59
unsigned long long uint64_t
Definition: stdint.h:18
BLAM void PrepareTick()
Prepares required data for the tick loop.
Definition: tick.cpp:31
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:177
LARGE_INTEGER clock_frequency
The frequency of the CPU clock. Used in calculations for tick rate.
Definition: tick.cpp:23
uint64_t total_runtime_ticks
Number of game ticks that have been run during entire program execution.
Definition: tick.cpp:20
Namespace containing components relating to the game tick.
Definition: tick.h:13
float seconds_per_tick
The number of seconds within a single tick. Usually much less than 1 second.
Definition: tick.cpp:24
float checkElapsedTime()
Definition: tick.cpp:47
BLAM bool IsTickLoopRunning()
Determines whether or not the tick loop is currently running - NOT whether it is paused.
Definition: tick.cpp:147
BLAM void EndTickLoop()
Terminates the tick loop.
Definition: tick.cpp:137
bool pause_tick
Whether or not to temporarily pause the game tick.
Definition: tick.cpp:28
BLAM bool HasTickStopped()
Determines whether or not the tick loop has finished terminating.
Definition: tick.cpp:142
int max_tickrate
Maximum number of times doTick() should be run per second.
Definition: tick.cpp:18
float total_elapsed_time
The total amount of time elapsed this second. Used to determine how many ticks have run this second.
Definition: tick.cpp:25
BLAM uint64_t GetCurrentTickRate()
Retrieves the current tick rate.
Definition: tick.cpp:39
bool has_tick_stopped
Whether or not the game tick loop has terminated.
Definition: tick.cpp:29
bool lock_mouse_button_state
Definition: mouse.cpp:23
BLAM void PauseTickLoop()
Temporarily pauses the tick loop.
Definition: tick.cpp:132
int ticks_this_second
Number of game ticks that have been run this second.
Definition: tick.cpp:19
bool run_tick_loop
Whether or not to continue running the game tick loop.
Definition: tick.cpp:27
std::vector< uint8_t > active_mouse_buttons
Definition: mouse.cpp:9
LARGE_INTEGER last_second_time
Timestamp of previous second/tick counter reset.
Definition: tick.cpp:22