4.11 Implementing Your own Functions
Now implementing your own functions is trivial and works in the same way as most languages, however, as this is c++ we do need to do one additional thing. For example if we implement the following function in the strategy.cc file :
void DoGoodStuff(bool){
//Doing the good Stuff
}
then we also need to add a function prototype into naobehavior.h which would would like this
void DoGoodStuff(bool);
there is a section called Our Functions which can be searched for in naobehavior.h which is where all our other functions are prototyped as well.