diff --git a/examples/c++/Basic.cpp b/examples/c++/Basic.cpp index cfbdb2b35..edb8228eb 100644 --- a/examples/c++/Basic.cpp +++ b/examples/c++/Basic.cpp @@ -84,7 +84,7 @@ int main() { // Define some actions. Each list entry corresponds to declared buttons: // MOVE_LEFT, MOVE_RIGHT, ATTACK // more combinations are naturally possible but only 3 are included for transparency when watching. - std::vector actions[3]; + std::vector actions[3]; actions[0] = {1, 0, 0}; actions[1] = {0, 1, 0}; actions[2] = {0, 0, 1}; @@ -112,7 +112,7 @@ int main() { // Which consists of: unsigned int n = state->number; - std::vector vars = state->gameVariables; + std::vector vars = state->gameVariables; BufferPtr screenBuf = state->screenBuffer; BufferPtr depthBuf = state->depthBuffer; BufferPtr labelsBuf = state->labelsBuffer; diff --git a/examples/c++/CIG.cpp b/examples/c++/CIG.cpp index ea6f64487..ebcf2f96e 100644 --- a/examples/c++/CIG.cpp +++ b/examples/c++/CIG.cpp @@ -36,7 +36,7 @@ int main(){ GameStatePtr state = game->getState(); // Analyze the state. - std::vector action(game->getAvailableButtonsSize()); + std::vector action(game->getAvailableButtonsSize()); // Set your action. game->makeAction(action); diff --git a/examples/c++/CIGBots.cpp b/examples/c++/CIGBots.cpp index 635dc4d3b..a81c05dd3 100644 --- a/examples/c++/CIGBots.cpp +++ b/examples/c++/CIGBots.cpp @@ -54,7 +54,7 @@ int main(){ GameStatePtr state = game->getState(); // Analyze the state. - std::vector action(game->getAvailableButtonsSize()); + std::vector action(game->getAvailableButtonsSize()); // Set your action. game->makeAction(action); diff --git a/examples/c++/CIGHost.cpp b/examples/c++/CIGHost.cpp index b0b2a707d..bb37a517b 100644 --- a/examples/c++/CIGHost.cpp +++ b/examples/c++/CIGHost.cpp @@ -46,7 +46,7 @@ int main(){ GameStatePtr state = game->getState(); // Analyze the state. - std::vector action(game->getAvailableButtonsSize()); + std::vector action(game->getAvailableButtonsSize()); // Set your action. game->makeAction(action); diff --git a/examples/c++/CMakeLists.txt b/examples/c++/CMakeLists.txt index 95c0c7259..cae838479 100644 --- a/examples/c++/CMakeLists.txt +++ b/examples/c++/CMakeLists.txt @@ -12,7 +12,7 @@ if (WIN32) set_property(TARGET libvizdoom PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/vizdoom.lib) endif() if (UNIX AND NOT APPLE) - set_property(TARGET libvizdoom PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/libvizdoom.a) + set_property(TARGET libvizdoom PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/libvizdoom.so) endif() if (APPLE) set_property(TARGET libvizdoom PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/libvizdoom.dylib) diff --git a/examples/c++/DeltaButtons.cpp b/examples/c++/DeltaButtons.cpp index 27cee59e9..5a3d5a0ff 100644 --- a/examples/c++/DeltaButtons.cpp +++ b/examples/c++/DeltaButtons.cpp @@ -42,7 +42,7 @@ int main(){ // // For MOVE_FORWARD_BACKWARD_DELTA, MOVE_LEFT_RIGHT_DELTA, MOVE_UP_DOWN_DELTA (rarely used) // value is the speed of movement in a given direction (100 is close to the maximum speed). - std::vector action = {100, 10, 10, 1}; + std::vector action = {100, 10, 10, 1}; // If button's absolute value > max button's value then value = max value with original value sign. diff --git a/examples/c++/Seed.cpp b/examples/c++/Seed.cpp index 97f524945..aa6a92a2c 100644 --- a/examples/c++/Seed.cpp +++ b/examples/c++/Seed.cpp @@ -45,7 +45,7 @@ int main(){ game->init(); // Define some actions. - std::vector actions[3]; + std::vector actions[3]; actions[0] = {1, 0, 0}; actions[1] = {0, 1, 0}; actions[2] = {0, 0, 1}; diff --git a/examples/c++/Shaping.cpp b/examples/c++/Shaping.cpp index a954438e4..90485fde9 100644 --- a/examples/c++/Shaping.cpp +++ b/examples/c++/Shaping.cpp @@ -27,7 +27,7 @@ int main(){ game->init(); // Define some actions. - std::vector actions[3]; + std::vector actions[3]; actions[0] = {1, 0, 0}; actions[1] = {0, 1, 0}; actions[2] = {0, 0, 1}; diff --git a/examples/c++/Spectator.cpp b/examples/c++/Spectator.cpp index d562d454e..313144f80 100644 --- a/examples/c++/Spectator.cpp +++ b/examples/c++/Spectator.cpp @@ -15,9 +15,9 @@ int main(){ // Don't load two configs cause the second will overwrite the first one. // Multiple config files are ok but combining these ones doesn't make much sense. - //game->loadConfig("../../scenarios/basic.cfg"); + game->loadConfig("../../scenarios/basic.cfg"); //game->loadConfig("../../scenarios/deadly_corridor.cfg"); - game->loadConfig("../../scenarios/deathmatch.cfg"); + //game->loadConfig("../../scenarios/deathmatch.cfg"); //game->loadConfig("../../scenarios/defend_the_center.cfg"); //game->loadConfig("../../scenarios/defend_the_line.cfg"); //game->loadConfig("../../scenarios/health_gathering.cfg"); @@ -55,7 +55,7 @@ int main(){ // game->advanceAction(4); // Get the last action performed by You. - std::vector lastAction = game->getLastAction(); + std::vector lastAction = game->getLastAction(); // And reward You get. double reward = game->getLastReward();