add a few usefull functions in ai/common-api

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14864 3db68df2-c116-0410-a063-a993310a9797
commit first version of new ai bot (named Petra)

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14865 3db68df2-c116-0410-a063-a993310a9797
fix previous tag

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14866 3db68df2-c116-0410-a063-a993310a9797
remove some leftover warnings in petra

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14867 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'