quick & dirty timer functionality
This commit is contained in:
parent
9d728ee902
commit
ccd79fc551
6 changed files with 118 additions and 0 deletions
17
src/Timer.h
Normal file
17
src/Timer.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
#include "Common.h"
|
||||
#include "Python.h"
|
||||
class GameEngine; // forward declare
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
PyObject* target;
|
||||
int interval;
|
||||
int last_ran;
|
||||
Timer(); // for map to build
|
||||
Timer(Timer& other); // copy constructor
|
||||
Timer(PyObject*, int, int);
|
||||
~Timer();
|
||||
bool test(int);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue