world.c File Reference

#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "stage_internal.h"


Defines

#define _GNU_SOURCE

Functions

void stg_model_reload_cb (gpointer key, gpointer data, gpointer user)
void stg_model_save_cb (gpointer key, gpointer data, gpointer user)
void stg_world_add_model (stg_world_t *world, stg_model_t *mod)
stg_world_tstg_world_create (stg_id_t id, const char *token, int sim_interval, int real_interval, double ppm, double width, double height)
stg_world_tstg_world_create_from_file (const char *worldfile_path)
void stg_world_destroy (stg_world_t *world)
void stg_world_dimensions (stg_world_t *world, double *min_x, double *min_y, double *max_x, double *max_y)
stg_model_tstg_world_get_model (stg_world_t *world, stg_id_t mid)
int stg_world_model_destroy (stg_world_t *world, stg_id_t model)
stg_model_tstg_world_model_name_lookup (stg_world_t *world, const char *name)
void stg_world_print (stg_world_t *world)
void stg_world_reload (stg_world_t *world)
void stg_world_save (stg_world_t *world)
void stg_world_set_interval_real (stg_world_t *world, unsigned int val)
void stg_world_set_interval_sim (stg_world_t *world, unsigned int val)
void stg_world_start (stg_world_t *world)
void stg_world_stop (stg_world_t *world)
int stg_world_update (stg_world_t *world, int sleepflag)
void world_destroy_cb (gpointer world)
void world_print_cb (gpointer key, gpointer value, gpointer user)

Variables

int _stg_disable_gui
int _stg_quit
const double STG_DEFAULT_INTERVAL_GUI = 100.0
const double STG_DEFAULT_INTERVAL_MENU = 20.0
const double STG_DEFAULT_INTERVAL_REAL = 100.0
const double STG_DEFAULT_INTERVAL_SIM = 100.0
const double STG_DEFAULT_RESOLUTION = 0.02
const double STG_DEFAULT_WORLD_HEIGHT = 20.0
const double STG_DEFAULT_WORLD_WIDTH = 20.0
stg_type_record_t typetable []

Define Documentation

#define _GNU_SOURCE
 


Function Documentation

void stg_model_reload_cb gpointer  key,
gpointer  data,
gpointer  user
 

void stg_model_save_cb gpointer  key,
gpointer  data,
gpointer  user
 

void stg_world_dimensions stg_world_t world,
double *  min_x,
double *  min_y,
double *  max_x,
double *  max_y
 

int stg_world_model_destroy stg_world_t world,
stg_id_t  model
 

void stg_world_reload stg_world_t world  ) 
 

void world_destroy_cb gpointer  world  ) 
 

void world_print_cb gpointer  key,
gpointer  value,
gpointer  user
 


Variable Documentation

int _stg_disable_gui
 

int _stg_quit
 

const double STG_DEFAULT_INTERVAL_GUI = 100.0
 

const double STG_DEFAULT_INTERVAL_MENU = 20.0
 

const double STG_DEFAULT_INTERVAL_REAL = 100.0
 

const double STG_DEFAULT_INTERVAL_SIM = 100.0
 

const double STG_DEFAULT_RESOLUTION = 0.02
 

const double STG_DEFAULT_WORLD_HEIGHT = 20.0
 

const double STG_DEFAULT_WORLD_WIDTH = 20.0
 

stg_type_record_t typetable[]
 


Generated on Thu Dec 13 13:55:22 2007 for Stage by  doxygen 1.4.6