nucLeaRsc2

Untitled

Nov 30th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. bool Road::canConstruct(Construction* construction){
  2. std::string type = construction->getName();
  3. if (type == "Road"){
  4. printf("Nu poti construi un drum peste alt drum.\n");
  5. return false;
  6. }
  7.  
  8. if (type == "House"){
  9. printf("Nu poti construi o casa peste un drum\n");
  10. return false;
  11. }
  12.  
  13. return true;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment