#include "../../vm/vm.h"
#include "../../vm/natives.h"
#include "../../common/productids.h"
#include "../../common/consts.h"
#include "../../transport/buffer/vm-buffer.h"
#include <dashel/dashel.h>
#include <enki/PhysicalEngine.h>
#include <enki/robots/e-puck/EPuck.h>
#include <iostream>
#include <QtGui>
#include <QtDebug>
#include "challenge.h"
#include <challenge.moc>
#include <string.h>
Go to the source code of this file.
#define ASEBA_ASSERT |
Definition at line 29 of file challenge.cpp.
#define DEATH_ANIMATION_STEPS 30 |
Definition at line 114 of file challenge.cpp.
#define EPUCK_ENERGY_CONSUMPTION_RATE 1 |
Definition at line 112 of file challenge.cpp.
#define EPUCK_FEEDER_COLOR_ACTIVE Color::blue |
Definition at line 100 of file challenge.cpp.
#define EPUCK_FEEDER_COLOR_DEAD Color::gray |
Definition at line 102 of file challenge.cpp.
#define EPUCK_FEEDER_COLOR_INACTIVE Color::red |
Definition at line 101 of file challenge.cpp.
#define EPUCK_FEEDER_D_ENERGY 4 |
Definition at line 104 of file challenge.cpp.
#define EPUCK_FEEDER_DEATH_SPAN 10 |
Definition at line 109 of file challenge.cpp.
#define EPUCK_FEEDER_INITIAL_ENERGY 10 |
Definition at line 93 of file challenge.cpp.
#define EPUCK_FEEDER_LIFE_SPAN 60 |
Definition at line 108 of file challenge.cpp.
#define EPUCK_FEEDER_MAX_ENERGY 100 |
Definition at line 106 of file challenge.cpp.
#define EPUCK_FEEDER_RADIUS 5 |
Definition at line 96 of file challenge.cpp.
#define EPUCK_FEEDER_RADIUS_DEAD 6 |
Definition at line 97 of file challenge.cpp.
#define EPUCK_FEEDER_RANGE 10 |
Definition at line 98 of file challenge.cpp.
#define EPUCK_FEEDER_RECHARGE_RATE 0.5 |
Definition at line 105 of file challenge.cpp.
#define EPUCK_FEEDER_THRESHOLD_HIDE 2 |
Definition at line 94 of file challenge.cpp.
#define EPUCK_FEEDER_THRESHOLD_SHOW 4 |
Definition at line 95 of file challenge.cpp.
#define EPUCK_INITIAL_ENERGY 10 |
Definition at line 111 of file challenge.cpp.
#define PORT_BASE ASEBA_DEFAULT_PORT |
Definition at line 115 of file challenge.cpp.
#define SIMPLIFIED_EPUCK |
Definition at line 47 of file challenge.cpp.
typedef QMap<AsebaVMState*, Enki::AsebaFeedableEPuck*> VmEPuckMap |
Definition at line 71 of file challenge.cpp.
void AsebaAssert | ( | AsebaVMState * | vm, |
AsebaAssertReason | reason | ||
) |
Definition at line 1033 of file challenge.cpp.
static void initTexturesResources | ( | ) | [static] |
Definition at line 49 of file challenge.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1098 of file challenge.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 challenge.cpp.
VmEPuckMap asebaEPuckMap [static] |
Definition at line 72 of file challenge.cpp.
const AsebaLocalEventDescription localEvents[] = { { "timer", "periodic timer at 50 Hz" }, { NULL, NULL }} [static] |
Definition at line 1008 of file challenge.cpp.
QString localName [static] |
Definition at line 86 of file challenge.cpp.
AsebaNativeFunctionPointer nativeFunctions[] [static] |
Definition at line 74 of file challenge.cpp.
const AsebaNativeFunctionDescription* nativeFunctionsDescriptions[] [static] |
Definition at line 79 of file challenge.cpp.
Definition at line 88 of file challenge.cpp.
Definition at line 89 of file challenge.cpp.