00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #include "../../vm/natives.h"
00033
00034
00035 AsebaVMDescription vmDescription = {
00036 "e-puck ",
00037 {
00038 { 1, "id" },
00039 { 1, "source" },
00040 { 32, "args" },
00041 { 1, "leftSpeed" },
00042 { 1, "rightSpeed" },
00043 { 1, "colorR" },
00044 { 1, "colorG" },
00045 { 1, "colorB" },
00046 { 8, "prox" },
00047 { 60, "camR" },
00048 { 60, "camG" },
00049 { 60, "camB" },
00050 { 1, "energy" },
00051 { 0, NULL }
00052 }
00053 };
00054
00055 AsebaNativeFunctionDescription PlaygroundNativeDescription_energysend =
00056 {
00057 "energy.send",
00058 "send energy to pool",
00059 {
00060 { 1, "amount" },
00061 { 0, 0 }
00062 }
00063 };
00064
00065 AsebaNativeFunctionDescription PlaygroundNativeDescription_energyreceive =
00066 {
00067 "energy.receive",
00068 "receive energy from pool",
00069 {
00070 { 1, "amount" },
00071 { 0, 0 }
00072 }
00073 };
00074
00075 AsebaNativeFunctionDescription PlaygroundNativeDescription_energyamount =
00076 {
00077 "energy.amount",
00078 "get the amount of energy available in pool",
00079 {
00080 { 1, "amount" },
00081 { 0, 0 }
00082 }
00083 };
00084