bot is a substructure of Bot. So you need to use it as Bot::bot in main.cpp.

Your methods have no class specification in them, if you are not implemented inline, you have to tell the compiler what class each function belongs to.

Code:
bot BotTrue(bot* botA)...
should be
Code:
bot Bot::BotTrue(bot* botA)...
Also, TObject doesn't appear to be declared anywhere.