Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
jonylu7 committed Jun 14, 2024
1 parent 7fc60c3 commit 100f177
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Map/TerrainConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ std::unordered_map<std::string, std::shared_ptr<TileClass>>
{"Clear", std::make_shared<TileClass>(UnitType::TILE_CLEAR, 1, 1, 1)},
{"Gems", std::make_shared<TileClass>(UnitType::OVERLAY_GEMS, 0, 1, 1)},
{"Ore", std::make_shared<TileClass>(UnitType::OVERLAY_ORE, 0, 1, 1)},
{"River", std::make_shared<TileClass>(UnitType::TILE_RIVER, 0, 0, 0)},
{"River", std::make_shared<TileClass>(UnitType::TILE_RIVER, 0, 1, 0)},
{"Road", std::make_shared<TileClass>(UnitType::TILE_ROAD, 1, 1, 1)},
{"Rock", std::make_shared<TileClass>(UnitType::TILE_ROCK, 0, 0, 1)},
{"Rock", std::make_shared<TileClass>(UnitType::TILE_ROCK, 0, 1, 1)},
{"Rough", std::make_shared<TileClass>(UnitType::TILE_ROUGH, 0, 1, 1)},
{"Tree", std::make_shared<TileClass>(UnitType::TILE_TREE, 0, 1, 1)},
{"Water", std::make_shared<TileClass>(UnitType::TILE_WATER, 0, 0, 0)}};
{"Water", std::make_shared<TileClass>(UnitType::TILE_WATER, 0, 1, 0)}};
11 changes: 11 additions & 0 deletions src/Scene/TutorialScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ void TutorialScene::Update() {

auto tile = m_Map->getTileByCellPosition(MapUtil::GlobalCoordToCellCoord(
MapUtil::ScreenToGlobalCoord(Util::Input::GetCursorPosition())));
/*
std::cout
<< MapUtil::GlobalCoordToCellCoord(
MapUtil::ScreenToGlobalCoord(Util::Input::GetCursorPosition()))
.x
<< " "
<< MapUtil::GlobalCoordToCellCoord(
MapUtil::ScreenToGlobalCoord(Util::Input::GetCursorPosition()))
.y
<< " " << tile->getTileImagePath() << std::endl;
*/

if (m_UI->getIfAnyBuildingReadyToBuild()) {
m_GameObjectManager->getStructureManager()->AddStructSelectingBuiltSite(
Expand Down

0 comments on commit 100f177

Please sign in to comment.