Main Page | Class List | File List | Class Members | File Members

main.cpp File Reference

#include "common.h"
#include "world.h"
#include "instructions.h"
#include "render.h"

Include dependency graph for main.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void initWorld ()
 creates a world

void draw ()
void idle ()
int main (int argc, char *argv[])

Variables

uInt g_seed = 0
 a random seed

worldg_pWorld = NULL
 pointer to the world


Function Documentation

void draw  ) 
 

Definition at line 76 of file main.cpp.

References world::draw(), and g_pWorld.

Referenced by main().

void idle  ) 
 

Definition at line 82 of file main.cpp.

References g_pWorld, initWorld(), world::isDead(), and world::step().

Referenced by main().

void initWorld  ) 
 

creates a world

Definition at line 15 of file main.cpp.

References world::addInstruction(), g_pWorld, g_seed, world::init(), instr_absorbEnergy(), instr_add(), instr_convertEnergyToMemory(), instr_convertMemoryToEnergy(), instr_copy(), instr_decrement(), instr_giveMemory(), instr_increment(), instr_killThread(), instr_moveFoward(), instr_null(), instr_rotate(), instr_spawnThread(), instr_sub(), instr_switch(), instr_takeMemory(), instr_transferEnergy(), position, world::setEnergyPerAbsorb(), world::setEnergyPerUnitMemory(), world::setMaxCostPerTile(), world::setMaxEnergyPerEntity(), world::setMaxEnergyPerTile(), world::setMaxMemoryPerEntity(), and world::spawnEntity().

Referenced by idle().

int main int  argc,
char *  argv[]
 

Definition at line 99 of file main.cpp.

References beginMainLoop(), draw(), idle(), initRenderingContext(), setMainLoopCallback(), and setRenderCallback().


Variable Documentation

world* g_pWorld = NULL
 

pointer to the world

Definition at line 11 of file main.cpp.

Referenced by draw(), idle(), and initWorld().

uInt g_seed = 0
 

a random seed

Definition at line 8 of file main.cpp.

Referenced by initWorld().


Generated on Sun Mar 6 22:11:26 2005 for experiment03 by doxygen 1.3.7