20
20
* Free Software Foundation, Inc.,
21
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
package com.vettalabs.petaverse.plugins;
27
import com.vettalabs.petaverse.actions.PetAction;
29
public interface WorldSimulator {
37
public void executeAction(String petName, PetAction petAction, long actionTicket);
40
* Send messages containing Petaverse feedback.
45
public void sendFeedBackMessage(Long ownerOid, String message);
48
* Spawn the pet 3D model into Multiverse world.
50
* @param petId The id of the pet to be spawned
52
public void spawnPet(String petOid);
55
* Despawn the pet 3D model into Multiverse world.
57
* @param petId The id of the pet to be despawned
59
public void despawnPet(String petOid);
62
* Update the values of physiologicalModel recored in mob properties
64
* @param physiologicalModel
66
public void updatePhysiologicalModel(PetaversePhysiologicalModel physiologicalModel, Long petId);
69
* Update the emotional feelings properties
71
* @param feelingsValueMap
74
public void updateEmotionalFeelings(Map<String, Float> feelingsValueMap, Long petId);
77
* Cancel all scheduled actions for agent with the given ID
80
public void cancelAgentActions(String agentId);
83
* Get the current orientation angle of the agent with the given ID
87
public double getAgentOrientationAngle(String petId);
23
package com.vettalabs.petaverse.plugins;
27
import com.vettalabs.petaverse.actions.PetAction;
29
public interface WorldSimulator {
37
public void executeAction(String petName, PetAction petAction, long actionTicket);
40
* Send messages containing Petaverse feedback.
45
public void sendFeedBackMessage(Long ownerOid, String message);
48
* Spawn the pet 3D model into Multiverse world.
50
* @param petId The id of the pet to be spawned
52
public void spawnPet(String petOid);
55
* Despawn the pet 3D model into Multiverse world.
57
* @param petId The id of the pet to be despawned
59
public void despawnPet(String petOid);
62
* Update the values of physiologicalModel recored in mob properties
64
* @param physiologicalModel
66
public void updatePhysiologicalModel(PetaversePhysiologicalModel physiologicalModel, Long petId);
69
* Update the emotional feelings properties
71
* @param feelingsValueMap
74
public void updateEmotionalFeelings(Map<String, Float> feelingsValueMap, Long petId);
77
* Cancel all scheduled actions for agent with the given ID
80
public void cancelAgentActions(String agentId);
83
* Get the current orientation angle of the agent with the given ID
87
public double getAgentOrientationAngle(String petId);
90
90
* Get the agent vision radius (how long it can perceive objects) in this world
93
public int getAgentVisionRadius(String petId);
96
* Get the global X position (the lower X coordinate) for this world
98
public int getGlobalPositionX(String petId);
101
* Get the global Y position (the lower Y coordinate) for this world
103
public int getGlobalPositionY(String petId);
93
public int getAgentVisionRadius(String petId);
96
* Get the global X position (the lower X coordinate) for this world
98
public int getGlobalPositionX(String petId);
101
* Get the global Y position (the lower Y coordinate) for this world
103
public int getGlobalPositionY(String petId);