View Single Post
Re: code to get the illumination at any point on the map
Old
  (#31)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: code to get the illumination at any point on the map - 20-03-2012

Quote:
Originally Posted by Immortal_BLG View Post
About it I don't know, try to declare this function in bot_globals.cpp, but why you do not accept the declaration in a header file, how has offered Whistler?
Because I just don't know how to do it with a member of a class/namespace.

Quote:
Originally Posted by Immortal_BLG View Post
And into the account of classes and namespaces - you are free to make with a code all that you want, so you can simply remove this namespace....
If You can re-write that function so it doesn't need to be a member of namespace/class, it would be moreeasy for me to handle it.
Another thing I'm thinking of is - how much Your function consume the CPU power since it is a recursive function, which needs to be called for every 30 bots on the server (if there are 30 bots)?
  
Reply With Quote