Interaction world-agent
some slight changes to the code above, both getAgentByName and m_AgentArray have to be static
Like AP said, its more of a design issue.
Now I understood.
I will think more about this, the name idea is good.
Now I have some other doubts...
All the agent actions are send to the world for validation (so that the agent does not cheat, I know I''m doing all the coding, but its a matter of consistency). I have to find a way to do that. Sending the actions in a package is the easiest way to make sure it doesn''t cheat. But again I don''t like the idea very much and would rather have the agent calling different methods to do different actions. But this makes action checking harder (it could call 2 different methods and the world you have to know it already called an action method to reject the second request, which is more complicated). But I will figure this one out too.
Thanks for the answers!
Now I understood.
I will think more about this, the name idea is good.
Now I have some other doubts...
All the agent actions are send to the world for validation (so that the agent does not cheat, I know I''m doing all the coding, but its a matter of consistency). I have to find a way to do that. Sending the actions in a package is the easiest way to make sure it doesn''t cheat. But again I don''t like the idea very much and would rather have the agent calling different methods to do different actions. But this makes action checking harder (it could call 2 different methods and the world you have to know it already called an action method to reject the second request, which is more complicated). But I will figure this one out too.
Thanks for the answers!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement