The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lua_rng.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by Chris Beck <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef LUA_RNG_HPP_INCLUDED
16 #define LUA_RNG_HPP_INCLUDED
17 
18 /**
19  * This namespace contains bindings for lua to hold a mt19937 object
20  * as userdata, draw from it, and do the automatic memory management
21  */
22 
23 struct lua_State;
24 
25 namespace lua_rng {
26 
27 /** Implementations for lua callbacks */
32 
33 /** Creates the metatable for RNG objects, and adds the Rng table which contains the constructor */
34 void load_tables(lua_State*);
35 
36 } // end namespace lua_rng
37 
38 #endif
int impl_rng_destroy(lua_State *L)
Definition: lua_rng.cpp:46
int impl_rng_seed(lua_State *L)
Definition: lua_rng.cpp:60
int impl_rng_create(lua_State *L)
Implementations for lua callbacks.
Definition: lua_rng.cpp:37
int impl_rng_draw(lua_State *L)
Definition: lua_rng.cpp:69
void load_tables(lua_State *L)
Creates the metatable for RNG objects, and adds the Rng table which contains the constructor.
Definition: lua_rng.cpp:79