#include <../../vm/vm.h>
#include "../../vm/natives.h"
#include <../../common/consts.h>
#include <../../transport/buffer/vm-buffer.h>
#include <enki/PhysicalEngine.h>
#include <enki/robots/e-puck/EPuck.h>
#include <iostream>
#include <QtGui>
#include <QtDebug>
#include <QtXml>
#include "playground.h"
#include <viewer/Viewer.h>
#include <dashel/dashel.h>
#include <QVector>
#include <string.h>
Go to the source code of this file.
#define ACTIVATION_OBJECT_COLOR LEGO_RED |
Definition at line 130 of file playground.cpp.
#define ACTIVATION_OBJECT_HEIGHT 6 |
Definition at line 131 of file playground.cpp.
#define DEATH_ANIMATION_STEPS 30 |
Definition at line 133 of file playground.cpp.
#define EPUCK_ENERGY_CONSUMPTION_RATE 1 |
Definition at line 124 of file playground.cpp.
#define EPUCK_FEEDER_COLOR_ACTIVE LEGO_GREEN |
Definition at line 114 of file playground.cpp.
#define EPUCK_FEEDER_COLOR_INACTIVE LEGO_WHITE |
Definition at line 115 of file playground.cpp.
#define EPUCK_FEEDER_D_ENERGY 4 |
Definition at line 117 of file playground.cpp.
#define EPUCK_FEEDER_HEIGHT 5 |
Definition at line 121 of file playground.cpp.
#define EPUCK_FEEDER_INITIAL_ENERGY 10 |
Definition at line 108 of file playground.cpp.
#define EPUCK_FEEDER_MAX_ENERGY 100 |
Definition at line 119 of file playground.cpp.
#define EPUCK_FEEDER_RADIUS 5 |
Definition at line 111 of file playground.cpp.
#define EPUCK_FEEDER_RANGE 10 |
Definition at line 112 of file playground.cpp.
#define EPUCK_FEEDER_RECHARGE_RATE 0.5 |
Definition at line 118 of file playground.cpp.
#define EPUCK_FEEDER_THRESHOLD_HIDE 2 |
Definition at line 109 of file playground.cpp.
#define EPUCK_FEEDER_THRESHOLD_SHOW 4 |
Definition at line 110 of file playground.cpp.
#define EPUCK_INITIAL_ENERGY 10 |
Definition at line 123 of file playground.cpp.
#define INITIAL_POOL_ENERGY 10 |
Definition at line 128 of file playground.cpp.
#define LEGO_BLUE Enki::Color(0, 0.38 ,0.61) |
Definition at line 105 of file playground.cpp.
#define LEGO_GREEN Enki::Color(0, 0.5, 0.17) |
Definition at line 104 of file playground.cpp.
#define LEGO_RED Enki::Color(0.77, 0.2, 0.15) |
Definition at line 103 of file playground.cpp.
#define LEGO_WHITE Enki::Color(0.9, 0.9, 0.9) |
Definition at line 106 of file playground.cpp.
#define SCORE_MODIFIER_COEFFICIENT 0.2 |
Definition at line 126 of file playground.cpp.
void AsebaAssert | ( | AsebaVMState * | vm, | |
AsebaAssertReason | reason | |||
) |
Definition at line 817 of file playground.cpp.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 851 of file playground.cpp.
void PlaygroundNative_energyamount | ( | AsebaVMState * | vm | ) |
Definition at line 723 of file playground.cpp.
void PlaygroundNative_energyreceive | ( | AsebaVMState * | vm | ) |
Definition at line 705 of file playground.cpp.
void PlaygroundNative_energysend | ( | AsebaVMState * | vm | ) |
Definition at line 687 of file playground.cpp.
Derived polymorphic_downcast | ( | Base | base | ) | [inline] |
Asserts a dynamic cast. Similar to the one in boost/cast.hpp.
Definition at line 56 of file playground.cpp.
char ePuckName[9] = "e-puck " [static] |
Definition at line 779 of file playground.cpp.
const AsebaLocalEventDescription localEvents[] [static] |
{ { "ir_sensors", "New IR sensors values available" }, {"camera", "New camera picture available"}, { NULL, NULL } }
Definition at line 788 of file playground.cpp.
AsebaNativeFunctionPointer nativeFunctions[] [static] |
{ ASEBA_NATIVES_STD_FUNCTIONS, PlaygroundNative_energysend, PlaygroundNative_energyreceive, PlaygroundNative_energyamount }
Definition at line 79 of file playground.cpp.
const AsebaNativeFunctionDescription* nativeFunctionsDescriptions[] [static] |
{ ASEBA_NATIVES_STD_DESCRIPTIONS, &PlaygroundNativeDescription_energysend, &PlaygroundNativeDescription_energyreceive, &PlaygroundNativeDescription_energyamount, 0 }
Definition at line 87 of file playground.cpp.
Definition at line 76 of file playground.cpp.
Definition at line 75 of file playground.cpp.
Definition at line 74 of file playground.cpp.
Definition at line 99 of file playground.cpp.
Definition at line 96 of file playground.cpp.