Classes | Namespaces | Defines | Typedefs | Functions | Variables
challenge.cpp File Reference
#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>
Include dependency graph for challenge.cpp:

Go to the source code of this file.

Classes

class  Enki::AsebaFeedableEPuck
class  Enki::EPuckFeeder
class  Enki::EPuckFeeding
class  Enki::FeedableEPuck
class  Enki::FeederModel
struct  Enki::AsebaFeedableEPuck::Variables

Namespaces

namespace  Enki

Defines

#define ASEBA_ASSERT
#define DEATH_ANIMATION_STEPS   30
#define EPUCK_ENERGY_CONSUMPTION_RATE   1
#define EPUCK_FEEDER_COLOR_ACTIVE   Color::blue
#define EPUCK_FEEDER_COLOR_DEAD   Color::gray
#define EPUCK_FEEDER_COLOR_INACTIVE   Color::red
#define EPUCK_FEEDER_D_ENERGY   4
#define EPUCK_FEEDER_DEATH_SPAN   10
#define EPUCK_FEEDER_INITIAL_ENERGY   10
#define EPUCK_FEEDER_LIFE_SPAN   60
#define EPUCK_FEEDER_MAX_ENERGY   100
#define EPUCK_FEEDER_RADIUS   5
#define EPUCK_FEEDER_RADIUS_DEAD   6
#define EPUCK_FEEDER_RANGE   10
#define EPUCK_FEEDER_RECHARGE_RATE   0.5
#define EPUCK_FEEDER_THRESHOLD_HIDE   2
#define EPUCK_FEEDER_THRESHOLD_SHOW   4
#define EPUCK_INITIAL_ENERGY   10
#define PORT_BASE   ASEBA_DEFAULT_PORT
#define SIMPLIFIED_EPUCK

Typedefs

typedef QMap< AsebaVMState
*, Enki::AsebaFeedableEPuck * > 
VmEPuckMap

Functions

void AsebaAssert (AsebaVMState *vm, AsebaAssertReason reason)
uint16 AsebaGetBuffer (AsebaVMState *vm, uint8 *data, uint16 maxLength, uint16 *source)
const AsebaLocalEventDescriptionAsebaGetLocalEventsDescriptions (AsebaVMState *vm)
const
AsebaNativeFunctionDescription
*const * 
AsebaGetNativeFunctionsDescriptions (AsebaVMState *vm)
const AsebaVMDescriptionAsebaGetVMDescription (AsebaVMState *vm)
void AsebaNativeFunction (AsebaVMState *vm, uint16 id)
void AsebaPutVmToSleep (AsebaVMState *vm)
void AsebaResetIntoBootloader (AsebaVMState *vm)
void AsebaSendBuffer (AsebaVMState *vm, const uint8 *data, uint16 length)
void AsebaWriteBytecode (AsebaVMState *vm)
GLint Enki::GenFeederBase ()
GLint Enki::GenFeederCharge0 ()
GLint Enki::GenFeederCharge1 ()
GLint Enki::GenFeederCharge2 ()
GLint Enki::GenFeederCharge3 ()
GLint Enki::GenFeederRing ()
static void initTexturesResources ()
int main (int argc, char *argv[])
template<typename Derived , typename Base >
Derived polymorphic_downcast (Base base)
 Asserts a dynamic cast. Similar to the one in boost/cast.hpp.

Variables

static VmEPuckMap asebaEPuckMap
static const
AsebaLocalEventDescription 
localEvents [] = { { "timer", "periodic timer at 50 Hz" }, { NULL, NULL }}
static QString localName
static AsebaNativeFunctionPointer nativeFunctions []
static const
AsebaNativeFunctionDescription
nativeFunctionsDescriptions []
AsebaVMDescription vmDescription_en
AsebaVMDescription vmDescription_fr

Define Documentation

#define ASEBA_ASSERT

Definition at line 29 of file challenge.cpp.

#define DEATH_ANIMATION_STEPS   30

Definition at line 114 of file challenge.cpp.

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.

Definition at line 94 of file challenge.cpp.

Definition at line 95 of file challenge.cpp.

#define EPUCK_INITIAL_ENERGY   10

Definition at line 111 of file challenge.cpp.

Definition at line 115 of file challenge.cpp.

Definition at line 47 of file challenge.cpp.


Typedef Documentation

Definition at line 71 of file challenge.cpp.


Function Documentation

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.

template<typename Derived , typename Base >
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.


Variable Documentation

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.

Initial value:

Definition at line 74 of file challenge.cpp.

Initial value:

Definition at line 79 of file challenge.cpp.

Definition at line 88 of file challenge.cpp.

Definition at line 89 of file challenge.cpp.



aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39