Skip to content
Snippets Groups Projects

Implement Player Class

3 files
+ 13
8
Compare changes
  • Side-by-side
  • Inline

Files

+ 5
3
@@ -123,9 +123,11 @@ std::shared_ptr<Level> Level::loadLevel(std::string path, Engine& engine)
@@ -123,9 +123,11 @@ std::shared_ptr<Level> Level::loadLevel(std::string path, Engine& engine)
}
}
}
}
return std::make_shared<Level>(
Level level(name, width, height, tiles, buildings, units, std::vector<Effect>{}, turnQ);
name, width, height, tiles, buildings, units, std::vector<Effect>{}, turnQ);
};
level.m_turnQ.front().startTurn(level.m_units, level.m_buildings);
 
return std::make_shared<Level>(level);
 
}
std::pair<int, int> Level::calcTilePos(int mouseX, int mouseY)
std::pair<int, int> Level::calcTilePos(int mouseX, int mouseY)
{
{
Loading