Hello...
I am doing background for my second game. There would be 4 types of buildings in background, but all of them will do the same, so I chose polymorphism to code that (because it would be easier to construct city by this). The problem is, that I get some errors then I try to write a function of inherited class in .cpp file. What I am doing wrong? How can I properly write function in .cpp file? :)
error C2144: syntax error : 'void' should be preceded by ';'
error C2628: 'a_buildings' followed by 'void' is illegal (did you forget a ';'?)
error C2556: 'a_buildings Buildings::add(vector2)' : overloaded function differs only by return type from 'void Buildings::add(vector2)'
error C2371: 'Buildings::add' : redefinition; different basic types