AI Demo (Mifth)

@mifth said: You mean I should keep the states in my custom list?

Or just keep a reference to them where you created them however you do it. Basic programming stuff, really.

What would you do if AppStateManager had no getState() call at all?

@pspeed said: Or just keep a reference to them where you created them however you do it. Basic programming stuff, really.

What would you do if AppStateManager had no getState() call at all?

I would update my list of states in update loop. As you said. :slight_smile:

@mifth said: I would update my list of states in update loop. As you said. :)

? But your states are already being updated in an update loop.

@pspeed said: ? But your states are already being updated in an update loop.

I would not attach them.

@mifth said: I would not attach them.

So silly.

I literally butchered everything you have done @mifth. So I didn’t want to push it to repository because of it. The current version is on https://github.com/QuietOne/Test. I have added as collaborator and I refactored all to fit to structure needed for MonkeyBrains and MonkeyBrains to fit to structure of average game.

I couldn’t understand all references that have been made, so I put some of code that is supposed to go to appropriate behaviours, but it doesn’t work at all (I haven’t use some of those structures at all, and in code there aren’t any comments)…

I just hope that you want to see structure of NPC with usage of MonkeyBrains, so we can put final pieces together. To run this, you must download https://github.com/QuietOne/JMEAI because of references…

@Tihomir said: I literally butchered everything you have done @mifth. So I didn't want to push it to repository because of it. The current version is on https://github.com/QuietOne/Test. I have added as collaborator and I refactored all to fit to structure needed for MonkeyBrains and MonkeyBrains to fit to structure of average game.

I couldn’t understand all references that have been made, so I put some of code that is supposed to go to appropriate behaviours, but it doesn’t work at all (I haven’t use some of those structures at all, and in code there aren’t any comments)…

I just hope that you want to see structure of NPC with usage of MonkeyBrains, so we can put final pieces together. To run this, you must download GitHub - QuietOne/MonkeyBrains: Agent framework for jMonkey Engine because of references…

Ok, i get the Test project. I see you have an issue with prepareModel() method as this method is private and is used only one time to prepare the model (get animations, attach sword). And this method loops all Nodes in the character model.

Also you lost swordModel and animLst. These things are for every character.

Could you ping me in IRC so that we could chat? http://webchat.freenode.net/
Channel is “#jmonkeyengine
My nick “mifth”