>xabsl |
The Extensible Agent Behavior Specification Language |
Xabsl Example Source Code for Ascii Soccer |
  |
File my-basic-behaviors.xabsl
|
/** My common basic behaviors */
namespace my_basic_behaviors("My Basic Behaviors") {
/** Lets the agent move to a point */
behavior go_to {
/** X of destination position */
float x [1..78] "px";
/** Y of destination position */
float y [1..22] "px";
}
/** Approaches the ball and gets behind it */
behavior get_behind_ball {
}
/** Performs a basic action as moving or kicking */
behavior simple_action {
/** The id of the action to be performed */
float __action [0..10] "int";
}
}
|
|
|