Thank you for your inputs Jorrit and Res. I believe now that the correct way of 
doing this is: virtual bool addChild (iBTNode* child). This is what I have 
currently implemented in svn. Again please correct me if I am wrong, but I am 
more confident in this now having re-read the manual entry on smart pointers.

To bring the thread back to topic, anyone interested in behaviour trees in CEL 
please check out http://www.crystalspace3d.org/blog/samd and let me know your 
thoughts.

Thank you again for you time, Sam


> Date: Thu, 30 Jul 2009 12:53:44 +0200
> From: re...@gmx.ch
> To: cel-main@lists.sourceforge.net
> Subject: Re: [Cel-main] Behvaiour Tree Design
> 
> On 30.07.2009 08:20, Jorrit Tyberghein wrote:
> > Never use csPtr<anything> as a parameter. It should only be used (if
> > needed) as a return type. Use a normal pointer instead.
> 
> Check http://crystalspace3d.org/docs/online/manual/Smart-Pointers.html .
> It explains a lot about the different smart pointer types in CS and what
> to use in what situation.
> 
> -f.r.
> 

_________________________________________________________________
Windows Live Messenger: Celebrate 10 amazing years with free winks and 
emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to