Non-grid UDP movement

This commit is contained in:
2020-05-04 06:38:58 -04:00
parent 3ee6551013
commit 45673816bf
5 changed files with 117 additions and 25 deletions

View File

@ -39,12 +39,12 @@ TEST(EntityTest, GetBasicDump)
{
GameEntity entity = CreateTestEntity();
//Test intial location (0,0)
EXPECT_EQ(entity.get_dump(), std::string("0,0," + TEST_ENTITY_TYPE + ":" + TEST_ENTITY_ID + "\n"));
EXPECT_EQ(entity.get_dump(), std::string("0.000000,0.000000," + TEST_ENTITY_TYPE + ":" + TEST_ENTITY_ID + "\n"));
//Test non-intial location (1,2)
entity.set_x(1);
entity.set_y(2);
EXPECT_EQ(entity.get_dump(), std::string("1,2," + TEST_ENTITY_TYPE + ":" + TEST_ENTITY_ID + "\n"));
EXPECT_EQ(entity.get_dump(), std::string("1.000000,2.000000," + TEST_ENTITY_TYPE + ":" + TEST_ENTITY_ID + "\n"));
}
//Test GameMap Object