How Perceptions and Actions work Actions are sent from the client to the server in order to make the character perform an action. In order for the client to know the result of the action the Server needs to send a reply to the client. How will this be done?
In a first attempt, we send clients back an action that was the result of their action. However, this made the code really hard because we had to update two different things, perceptions and actions. Instead the solution appears intuitively: Why not join action reply and perceptions.
So the action reply is stored inside each object (that executed the action ) with a set of attributes that determine the action return status and the attributes. This way of doing replys makes it a bit harder on RPManager but it simplifys the creation of new clients alot.
See RPAction reply in the RPObject documentation to know exactly what is returned. However, keep in mind that the return result depends of each particular game. @author miguel
|
|
|
|
|
|
|
|