Skip to content
Snippets Groups Projects
Commit 1ff39386 authored by Max Cherris's avatar Max Cherris
Browse files

Commit changes

parent c10c0cc1
Branches
No related tags found
2 merge requests!34Building features,!29Merge main into box2d to implement physics
......@@ -39,12 +39,6 @@ class Building
*/
bool check_money(int price);
/*
When the building is selected, the player should have the ability to recruit a selection of
units They should be displayed by the UI On_click();
*/
void recruit_unit();
/**
If the building is clicked, it shows information to the player, here it will be a list of
all available units
......
......@@ -600,7 +600,8 @@ void Level::handleSelectingEvents(Engine& engine, SDL_Event& event)
}
else
{
if(m_buildings.at(m_selectedBuilding).getBuildingId() == BuildingId::CITY) {
BuildingId b_id = m_buildings.at(m_selectedBuilding).getBuildingId();
if(b_id == BuildingId::CITY || b_id == BuildingId::HEADQUARTER) {
m_contextMenu.setOptions({"Info", "Wait"});
} else {
m_contextMenu.setOptions({"Train", "Info", "Wait"});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment