Hello !
I have a little question : is it possible to write the following field :
I try to do it, but it doesn't work.
What I do wrong ?
Thanks for reading ;)
if (addedToWorld(World world))
if (addedToWorld(World world))
if (getWorld() != null)
if (addedToWorld(world)) // assuming the variable 'world' is assigned a World object // is equivalent to addedToWorld(world); if () // this obviously will fail
protected void addedToWorld(World world) { // action to take when actor is added into world }