Constructor and Description |
---|
Action(IActionPerformer actionPerformer)
Initializes all effectors that occur in the simulation
|
Modifier and Type | Method and Description |
---|---|
float |
getMaxGain()
Retrieve the motorGain the maximal gain (stiffness) motors can have
|
void |
init(IAgentMetaModel metaModel)
Initializes the effectors
|
void |
sayMessage(java.lang.String message)
shouts out a message to other players
|
void |
sendBeamString(float x,
float y,
float rotation)
Beams the player to specified position with specified direction
|
void |
sendMotorMessage()
Sends a motor command to the server.
|
void |
setEffectorValues(java.lang.String name,
float... values)
Sets the values of the passed effector as required by the specific
effector
|
void |
setMaxGain(float motorGain) |
public Action(IActionPerformer actionPerformer)
actionPerformer
- the component that can send the actionspublic void init(IAgentMetaModel metaModel)
public void setEffectorValues(java.lang.String name, float... values)
IAction
setEffectorValues
in interface IAction
name
- name of the effector as specified invalues
- the number of float values required by the specific effectorpublic void sendBeamString(float x, float y, float rotation)
IAction
sendBeamString
in interface IAction
x
- x coordinate on the fieldy
- y coordinate on the fieldrotation
- direction the player is facingpublic void sayMessage(java.lang.String message)
IAction
sayMessage
in interface IAction
message
- the message to send (max 8 bytes)public void sendMotorMessage()
IAction
sendMotorMessage
in interface IAction
public void setMaxGain(float motorGain)
setMaxGain
in interface IAction
motorGain
- the maximal gain (stiffness) motors can havepublic float getMaxGain()
IAction
getMaxGain
in interface IAction