#include "../../vm/vm.h"
#include "../../vm/natives.h"
#include "../../common/consts.h"
#include "../../transport/buffer/vm-buffer.h"
#include "../../common/productids.h"
#include <enki/PhysicalEngine.h>
#include <enki/robots/e-puck/EPuck.h>
#include <iostream>
#include <QtGui>
#include <QtDebug>
#include <QtXml>
#include "playground.h"
#include <string.h>
Go to the source code of this file.
#define ACTIVATION_OBJECT_COLOR LEGO_RED |
Definition at line 127 of file playground.cpp.
#define ACTIVATION_OBJECT_HEIGHT 6 |
Definition at line 128 of file playground.cpp.
#define ASEBA_ASSERT |
Definition at line 29 of file playground.cpp.
#define DEATH_ANIMATION_STEPS 30 |
Definition at line 130 of file playground.cpp.
#define EPUCK_ENERGY_CONSUMPTION_RATE 1 |
Definition at line 121 of file playground.cpp.
#define EPUCK_FEEDER_COLOR_ACTIVE LEGO_GREEN |
Definition at line 111 of file playground.cpp.
Definition at line 112 of file playground.cpp.
#define EPUCK_FEEDER_D_ENERGY 4 |
Definition at line 114 of file playground.cpp.
#define EPUCK_FEEDER_HEIGHT 5 |
Definition at line 118 of file playground.cpp.
#define EPUCK_FEEDER_INITIAL_ENERGY 10 |
Definition at line 105 of file playground.cpp.
#define EPUCK_FEEDER_MAX_ENERGY 100 |
Definition at line 116 of file playground.cpp.
#define EPUCK_FEEDER_RADIUS 5 |
Definition at line 108 of file playground.cpp.
#define EPUCK_FEEDER_RANGE 10 |
Definition at line 109 of file playground.cpp.
#define EPUCK_FEEDER_RECHARGE_RATE 0.5 |
Definition at line 115 of file playground.cpp.
#define EPUCK_FEEDER_THRESHOLD_HIDE 2 |
Definition at line 106 of file playground.cpp.
#define EPUCK_FEEDER_THRESHOLD_SHOW 4 |
Definition at line 107 of file playground.cpp.
#define EPUCK_INITIAL_ENERGY 10 |
Definition at line 120 of file playground.cpp.
#define INITIAL_POOL_ENERGY 10 |
Definition at line 125 of file playground.cpp.
#define LEGO_BLUE Enki::Color(0, 0.38 ,0.61) |
Definition at line 102 of file playground.cpp.
#define LEGO_GREEN Enki::Color(0, 0.5, 0.17) |
Definition at line 101 of file playground.cpp.
#define LEGO_RED Enki::Color(0.77, 0.2, 0.15) |
Definition at line 100 of file playground.cpp.
#define LEGO_WHITE Enki::Color(0.9, 0.9, 0.9) |
Definition at line 103 of file playground.cpp.
#define SCORE_MODIFIER_COEFFICIENT 0.2 |
Definition at line 123 of file playground.cpp.
void AsebaAssert | ( | AsebaVMState * | vm, |
AsebaAssertReason | reason | ||
) |
Definition at line 822 of file playground.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 856 of file playground.cpp.
void PlaygroundNative_energyamount | ( | AsebaVMState * | vm | ) |
Definition at line 725 of file playground.cpp.
void PlaygroundNative_energyreceive | ( | AsebaVMState * | vm | ) |
Definition at line 707 of file playground.cpp.
void PlaygroundNative_energysend | ( | AsebaVMState * | vm | ) |
Definition at line 689 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 53 of file playground.cpp.
char ePuckName[9] = "e-puck " [static] |
Definition at line 784 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 793 of file playground.cpp.
AsebaNativeFunctionPointer nativeFunctions[] [static] |
{ ASEBA_NATIVES_STD_FUNCTIONS, PlaygroundNative_energysend, PlaygroundNative_energyreceive, PlaygroundNative_energyamount }
Definition at line 76 of file playground.cpp.
const AsebaNativeFunctionDescription* nativeFunctionsDescriptions[] [static] |
{ ASEBA_NATIVES_STD_DESCRIPTIONS, &PlaygroundNativeDescription_energysend, &PlaygroundNativeDescription_energyreceive, &PlaygroundNativeDescription_energyamount, 0 }
Definition at line 84 of file playground.cpp.
Definition at line 73 of file playground.cpp.
Definition at line 72 of file playground.cpp.
Definition at line 71 of file playground.cpp.
Definition at line 96 of file playground.cpp.
Definition at line 93 of file playground.cpp.