On Mon, 12 Nov 2007, cwilkes wrote:
> However I'm not sure if internalBeforeRender() should call isVisible()
> before onBeforeRender(), or at least there should be a note in the javadoc
> that isVisible() is called very early on in the game and not just in the
> render() method.

This was discussed some time back -- isVisible() gets called
several times during a request, which feels strange indeed. 

If you don't want your isVisble logic to execute so often,
you can work around it by calling setVisible() in
onBeforeRender() instead of overriding isVisible(). It
doesn't look equally elegant in the code though.

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to