Skip to content

Commit

Permalink
Corrected setRenderCorpses link in docs, removed sleep method from lua
Browse files Browse the repository at this point in the history
Former-commit-id: f560baf
  • Loading branch information
mwydmuch committed Nov 15, 2016
1 parent a0fbc69 commit aa6b68d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 289 deletions.
12 changes: 6 additions & 6 deletions doc/DoomGame.md
Original file line number Diff line number Diff line change
Expand Up @@ -1236,13 +1236,13 @@ Config key: `renderMessages/render_messages`


---
### <a name="setRenderCorpsess"></a> `setRenderCorpses`
### <a name="setRenderCorpses"></a> `setRenderCorpses`

| C++ | `void setRenderCorpsess(bool corpses)` |
| :-- | :-- |
| Lua | `void setRenderCorpses(boolean corpses)` |
| Java | `void setRenderCorpsess(boolean corpses)` |
| Python | `void set_render_corpsess(bool corpses)` |
| C++ | `void setRenderCorpses(bool corpses)` |
| :-- | :-- |
| Lua | `void setRenderCorpses(boolean corpses)` |
| Java | `void setRenderCorpses(boolean corpses)` |
| Python | `void set_render_corpsess(bool corpses)` |

Added in 1.1

Expand Down
10 changes: 0 additions & 10 deletions doc/Utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ In Java utilities functions are static methods in DoomGame class.
* [doomFixedToDouble](#doomFixedToDouble)
* [isBinaryButton](#isBinaryButton)
* [isDeltaButton](#isDeltaButton)
* [sleep](#sleep)


---
Expand Down Expand Up @@ -112,12 +111,3 @@ Returns true if button is binary button.

Returns true if button is delta button.


---
### <a name="sleep"></a> `sleep`

| Lua | `void sleep(number sleepTime)` |
| :-- | :-- |

Pause thread for specified number of milliseconds (without busy waiting).
Added because of the absence in stock Lua.
155 changes: 0 additions & 155 deletions examples/python/test_basic.py

This file was deleted.

109 changes: 0 additions & 109 deletions examples/python/test_buffers.py

This file was deleted.

13 changes: 4 additions & 9 deletions src/lib_lua/ViZDoomLuaModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ EXCEPTION_TRANSLATE_TO_LUA(ViZDoomUnexpectedExitException)
double (*doomFixedToDouble_int)(int) = &doomFixedToDouble;
double (*doomFixedToDouble_double)(double) = &doomFixedToDouble;

void sleepLua(unsigned int time){
std::this_thread::sleep_for(std::chrono::milliseconds(time));
}


/* Module definition */
/*--------------------------------------------------------------------------------------------------------------------*/
Expand Down Expand Up @@ -462,15 +458,14 @@ extern "C" int luaopen_vizdoom(lua_State *luaState){
/* Utilities */
/*------------------------------------------------------------------------------------------------------------*/

def("sleep", sleepLua),
FUNC_2_LUA(doomTicsToMs),
FUNC_2_LUA(msToDoomTics),
FUNC_2_LUA(doomTicsToSec),
FUNC_2_LUA(secToDoomTics),
def("doomFixedToDouble", doomFixedToDouble_int),
// def("doomFixedToDouble", doomFixedToDouble_double),
def("doomFixedToNumber", doomFixedToDouble_int),
// def("doomFixedToNumber", doomFixedToDouble_double),
//def("doomFixedToDouble", doomFixedToDouble_int),
def("doomFixedToDouble", doomFixedToDouble_double),
//def("doomFixedToNumber", doomFixedToDouble_int),
def("doomFixedToNumber", doomFixedToDouble_double),
FUNC_2_LUA(isBinaryButton),
FUNC_2_LUA(isDeltaButton)

Expand Down

0 comments on commit aa6b68d

Please sign in to comment.