diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-13 19:56:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-13 19:56:05 +0300 |
commit | 38873bb99dea8a8089f1056bc1b28a59ed1f83d3 (patch) | |
tree | 702b19cf37f846f8a777777b958122d2cb562359 /src/utils/chatutils_unittest.cc | |
parent | c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf (diff) | |
download | mv-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.gz mv-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.bz2 mv-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.xz mv-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.zip |
Move virtual methods from Being constructor to postInit.
Diffstat (limited to 'src/utils/chatutils_unittest.cc')
-rw-r--r-- | src/utils/chatutils_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/utils/chatutils_unittest.cc b/src/utils/chatutils_unittest.cc index f6e608556..cbe87da9d 100644 --- a/src/utils/chatutils_unittest.cc +++ b/src/utils/chatutils_unittest.cc @@ -132,7 +132,7 @@ TEST_CASE("chatutils replaceVars", "") SECTION("player") { - Being *player1 = new Being(static_cast<BeingId>(2), + Being *player1 = Being::createBeing(static_cast<BeingId>(2), ActorType::Player, BeingTypeId_zero, nullptr); @@ -147,7 +147,7 @@ TEST_CASE("chatutils replaceVars", "") SECTION("monster") { - Being *const monster = new Being(static_cast<BeingId>(3), + Being *const monster = Being::createBeing(static_cast<BeingId>(3), ActorType::Monster, BeingTypeId_zero, nullptr); @@ -167,7 +167,7 @@ TEST_CASE("chatutils replaceVars", "") replaceVars(str); REQUIRE(str == "test "); - Being *const player1 = new Being(static_cast<BeingId>(2), + Being *const player1 = Being::createBeing(static_cast<BeingId>(2), ActorType::Player, BeingTypeId_zero, nullptr); @@ -178,7 +178,7 @@ TEST_CASE("chatutils replaceVars", "") replaceVars(str); REQUIRE(str == "test player1"); - Being *const player2 = new Being(static_cast<BeingId>(4), + Being *const player2 = Being::createBeing(static_cast<BeingId>(4), ActorType::Player, BeingTypeId_zero, nullptr); @@ -203,7 +203,7 @@ TEST_CASE("chatutils replaceVars", "") replaceVars(str); REQUIRE(str == "test "); - Being *const player1 = new Being(static_cast<BeingId>(2), + Being *const player1 = Being::createBeing(static_cast<BeingId>(2), ActorType::Player, BeingTypeId_zero, nullptr); @@ -215,7 +215,7 @@ TEST_CASE("chatutils replaceVars", "") replaceVars(str); REQUIRE(str == "test player1"); - Being *const player2 = new Being(static_cast<BeingId>(4), + Being *const player2 = Being::createBeing(static_cast<BeingId>(4), ActorType::Player, BeingTypeId_zero, nullptr); @@ -229,7 +229,7 @@ TEST_CASE("chatutils replaceVars", "") Party *const party2 = Party::getParty(2); - Being *const player3 = new Being(static_cast<BeingId>(5), + Being *const player3 = Being::createBeing(static_cast<BeingId>(5), ActorType::Player, BeingTypeId_zero, nullptr); |