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

Go to the source code of this file.

Classes

class  Enki::ActivationObject
class  Enki::AreaActivating
class  Enki::AsebaFeedableEPuck
class  Enki::Door
class  Enki::EPuckFeeder
class  Enki::EPuckFeeding
class  Enki::FeedableEPuck
class  Enki::ScoreModifier
class  Enki::SlidingDoor
struct  Enki::AsebaFeedableEPuck::Variables

Namespaces

namespace  Enki

Defines

#define ACTIVATION_OBJECT_COLOR   LEGO_RED
#define ACTIVATION_OBJECT_HEIGHT   6
#define ASEBA_ASSERT
#define DEATH_ANIMATION_STEPS   30
#define EPUCK_ENERGY_CONSUMPTION_RATE   1
#define EPUCK_FEEDER_COLOR_ACTIVE   LEGO_GREEN
#define EPUCK_FEEDER_COLOR_INACTIVE   LEGO_WHITE
#define EPUCK_FEEDER_D_ENERGY   4
#define EPUCK_FEEDER_HEIGHT   5
#define EPUCK_FEEDER_INITIAL_ENERGY   10
#define EPUCK_FEEDER_MAX_ENERGY   100
#define EPUCK_FEEDER_RADIUS   5
#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 INITIAL_POOL_ENERGY   10
#define LEGO_BLUE   Enki::Color(0, 0.38 ,0.61)
#define LEGO_GREEN   Enki::Color(0, 0.5, 0.17)
#define LEGO_RED   Enki::Color(0.77, 0.2, 0.15)
#define LEGO_WHITE   Enki::Color(0.9, 0.9, 0.9)
#define SCORE_MODIFIER_COEFFICIENT   0.2

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 ()
int main (int argc, char *argv[])
void PlaygroundNative_energyamount (AsebaVMState *vm)
void PlaygroundNative_energyreceive (AsebaVMState *vm)
void PlaygroundNative_energysend (AsebaVMState *vm)
template<typename Derived , typename Base >
Derived polymorphic_downcast (Base base)
 Asserts a dynamic cast. Similar to the one in boost/cast.hpp.

Variables

static char ePuckName [9] = "e-puck "
static const
AsebaLocalEventDescription 
localEvents []
static AsebaNativeFunctionPointer nativeFunctions []
static const
AsebaNativeFunctionDescription
nativeFunctionsDescriptions []
AsebaNativeFunctionDescription PlaygroundNativeDescription_energyamount
AsebaNativeFunctionDescription PlaygroundNativeDescription_energyreceive
AsebaNativeFunctionDescription PlaygroundNativeDescription_energysend
Enki::PlaygroundViewerplaygroundViewer = 0
AsebaVMDescription vmDescription

Define Documentation

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.

Definition at line 121 of file playground.cpp.

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.

Definition at line 106 of file playground.cpp.

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.


Function Documentation

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.

Definition at line 725 of file playground.cpp.

Definition at line 707 of file playground.cpp.

Definition at line 689 of file playground.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 53 of file playground.cpp.


Variable Documentation

char ePuckName[9] = "e-puck " [static]

Definition at line 784 of file playground.cpp.

Initial value:
 {
        { "ir_sensors", "New IR sensors values available" },
        {"camera", "New camera picture available"},
        { NULL, NULL }
}

Definition at line 793 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.



aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17