But again please place your entire wolf class here. So every method, variable and so on you have. Just everything that's code as soon as you open the actor wolf
Well no not really it's just replacing one command with another that basicly does the same for as far as i can see.. Feel free to correct me though danpost
In other words what danpost it trying to say is you can use the same code, but replace cansee by itTouching and replace eat by removeTouching. Allthough I don't see the use of doing so....
I did not say it would fix the problem. I was just saying that it is redundant to add a 'canSee' or 'eat' method to your code.
Answers to a few questions might help in determining what to do to fix the problem. Will the wolf be remove from the world when netted? if so, will the same wolf be replaced into the world after the 5 moves or will a new one be added into the world? will you still be counting how many times a wolf is eaten (or netted)?
The idea for as far as i got it is that he wants the wolf to be netted, then move exactly like the net for 5 moves and then move on its own again. Allso i didn't say the code you posted would fix anything.