LPCGame
A Simple 2d Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Pages
luactimer.h
1
#ifndef LUACTIMER_H
2
#define LUACTIMER_H
3
4
#include <string>
5
#include <lua.hpp>
6
#include "luacudata.h"
7
#include "core/timer.h"
8
10
14
namespace
LuaC
{
16
const
std::string
timerMeta
=
"LPC.Timer"
;
18
const
std::string
timerClass
=
"Timer"
;
20
template
<>
21
const
std::string
UdataLib<Timer>::mMetaTable
=
timerMeta
;
25
class
TimerLib
:
public
UdataLib
<Timer> {
26
public
:
28
static
int
luaopen_timer
(lua_State *l);
29
30
private
:
32
static
const
luaL_reg luaTimerLib[];
34
static
int
newTimer(lua_State *l);
35
static
int
start(lua_State *l);
36
static
int
stop(lua_State *l);
37
static
int
pause(lua_State *l);
38
static
int
unpause(lua_State *l);
39
static
int
restart(lua_State *l);
40
static
int
ticks(lua_State *l);
42
static
int
started(lua_State *l);
43
static
int
paused(lua_State *l);
44
};
45
};
46
#endif
Users
Will
Documents
Programs
LPCGame
src
luac
luactimer.h
Generated on Tue Jan 29 2013 18:58:09 for LPCGame by
1.8.2