100
X-Machines for Agent-Based Modeling: FLAME Perspectives

sugar_location

intsugar_id
doublex
doubley



eaten

intcitizen_id
doublex
doubley



my_sugar

intcitizen_id
intsugars




//Library file contains the global values used by the C
functions
#define citizen_view_length 200.0
#define citizen_eat_length 5.0
#define citizen_run_length 5.5
#define CitizenBoardSize 10
#define LENGTH 4
#define THRESHOLD 10.0
#define LANDSCAPE 200
double handle_boundary(double position);
//Library functions file contains common functions used by
agents
#include "header.h"
#include "my_library_header.h"
double handle_boundary(double position)
Précédent

- 129/329

Suivant