Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Road::canConstruct(Construction* construction){
- std::string type = construction->getName();
- if (type == "Road"){
- printf("Nu poti construi un drum peste alt drum.\n");
- return false;
- }
- if (type == "House"){
- printf("Nu poti construi o casa peste un drum\n");
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment