LuaSFMLSystem.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef LUASFMLSYSTEM_HH_
00018 # define LUASFMLSYSTEM_HH_
00019
00020 # include <SFML/System/Clock.hpp>
00021 # include <SFML/System/Randomizer.hpp>
00022 # include "Lua.hh"
00023
00024 namespace luasf {
00025
00026 class Clock
00027 {
00028 public:
00029 Clock(lua_State* l) {}
00030 int GetElapsedTime(lua_State* l);
00031 int Reset(lua_State* l);
00032
00033
00034 static const char className[];
00035 static Luna<Clock>::RegType methods[];
00036
00037 private:
00038 sf::Clock clock_;
00039 };
00040
00041 class Randomizer
00042 {
00043 public:
00044 Randomizer(lua_State* l) {}
00045 int Seed(lua_State* l);
00046 int Random(lua_State* l);
00047
00048
00049 static const char className[];
00050 static Luna<Randomizer>::RegType methods[];
00051
00052 private:
00053 sf::Randomizer rand_;
00054 };
00055
00056
00057 }
00058
00059 #endif // LUASFMLSYSTEM_HH_