Go to the source code of this file.
Defines | |
#define | PI 3.14159265358979323846 |
#define | GLUT_UP_BUTTON 0x0003 |
#define | GLUT_DOWN_BUTTON 0x0004 |
#define | TRANSLATE_LEFT '4' |
#define | TRANSLATE_RIGHT '6' |
#define | TRANSLATE_UP '8' |
#define | TRANSLATE_DOWN '2' |
#define | ZOOM_IN '+' |
#define | ZOOM_OUT '-' |
#define | ROTATE_LEFT '7' |
#define | ROTATE_RIGHT '9' |
#define | PAUSE ' ' |
#define | VALIDATE '*' |
#define | REDISPLAY_NB_MILLI_SEC 500 |
#define | NB_BITS_SIZE 4 |
#define | MAX_WORSHIPER_SIZE (1 << NB_BITS_SIZE) |
#define | CAPACITY_FACTOR 10 |
#define | MAX_FOOD_CAPACITY (CAPACITY_FACTOR * MAX_WORSHIPER_SIZE) |
#define | FOOD_CONSUMPTION 1 |
#define | GODS_GIFT_FOOD_VALUE (10 * MAX_FOOD_CAPACITY) |
#define | CELL_SIZE (6 * (NB_BITS_SIZE + 1)) |
#define | WALL_HEIGHT ((int) (CELL_SIZE / 3)) |
#define | MOVE_UP_SPEED ((int) (CELL_SIZE / 2)) |
#define | ZOOM_SPEED ((int) (CELL_SIZE / 2)) |
#define | ROTATE_ANGLE (PI / 8) |
#define | HEIGHT_MIN ((int) (CELL_SIZE / 3)) |
#define | HEIGHT_MAX (10 * CELL_SIZE) |
#define | ZOOM_MIN (SIZE_NB_BYTES + 1) |
#define | ZOOM_MAX (3 * CELL_SIZE) |
#define | HORIZON (50.0 * CELL_SIZE) |
#define | ANTIALIASING_LEVEL 0 |
#define | WORSHIPER_TEXTURE_SIZE 4 |
#define | MAX_WORSHIPER_PER_CELL 6 |
#define | CORRIDOR_SIZE_MAX (MAX_WORSHIPER_SIZE - 1) |
#define | COLOR_MIN 0 |
#define | COLOR_MAX 255 |
#define | COLOR_LIMIT 75 |
#define | NUMBER_PHEROMONES 3 |
#define | PHEROMONE_LIFE_TIME 10 |
Definition in file Constants.h.
#define ANTIALIASING_LEVEL 0 |
Level of antialiasing. Should be between 0 and 7
Definition at line 111 of file Constants.h.
Referenced by Display::draw().
#define CAPACITY_FACTOR 10 |
The factor between the size and the capacity of a Worshiper
Definition at line 73 of file Constants.h.
Referenced by Worshiper::getCapacity().
#define CELL_SIZE (6 * (NB_BITS_SIZE + 1)) |
Size of a Cell
Definition at line 85 of file Constants.h.
Referenced by Display::Display(), World::draw(), WallCell::draw(), ReachableCell::draw(), Display::draw(), Cell::draw(), Display::inputKey(), and Display::translate_camera().
#define COLOR_LIMIT 75 |
The limit gap between an allowed color component and the COLOR_MAX value
Definition at line 131 of file Constants.h.
Referenced by Colony::Colony(), and GenColor::getNewColor().
#define COLOR_MAX 255 |
The max value for a color component
Definition at line 129 of file Constants.h.
Referenced by Colony::Colony(), WallCell::draw(), Display::draw(), Cell::getColors(), GenColor::getNewColor(), Image::Image(), and Image::loadBMP().
#define COLOR_MIN 0 |
The min value for a color component
Definition at line 127 of file Constants.h.
Referenced by GenColor::getNewColor(), and Image::Image().
#define CORRIDOR_SIZE_MAX (MAX_WORSHIPER_SIZE - 1) |
Max of the sizes max of Worshipers that can access a CorridorCell
Definition at line 123 of file Constants.h.
Referenced by World::World().
#define FOOD_CONSUMPTION 1 |
The factor of food consumption
Definition at line 79 of file Constants.h.
Referenced by Worshiper::subFood().
#define GLUT_DOWN_BUTTON 0x0004 |
The mouse wheel down button
Definition at line 35 of file Constants.h.
Referenced by Display::inputMouse().
#define GLUT_UP_BUTTON 0x0003 |
The mouse wheel up button
Definition at line 33 of file Constants.h.
Referenced by Display::inputMouse().
#define GODS_GIFT_FOOD_VALUE (10 * MAX_FOOD_CAPACITY) |
The amount of food of a Gods' Gift
Definition at line 81 of file Constants.h.
Referenced by World::addGodsGift().
#define HEIGHT_MAX (10 * CELL_SIZE) |
Max height of the camera
Definition at line 101 of file Constants.h.
Referenced by Display::Display(), Display::init(), Display::move_camera(), and Display::zoom_camera().
#define HEIGHT_MIN ((int) (CELL_SIZE / 3)) |
Min height of the camera
Definition at line 99 of file Constants.h.
Referenced by Display::move_camera(), and Display::zoom_camera().
#define HORIZON (50.0 * CELL_SIZE) |
Distance of the Horizon
Definition at line 107 of file Constants.h.
Referenced by Display::Display().
#define MAX_FOOD_CAPACITY (CAPACITY_FACTOR * MAX_WORSHIPER_SIZE) |
The max food capacity of a Worshiper
Definition at line 77 of file Constants.h.
Referenced by GeneticReplication::createWorshiper(), HeuristicReplication::getNewWorshipers(), and World::World().
#define MAX_WORSHIPER_PER_CELL 6 |
Number max of Worshipers per Cell
Definition at line 119 of file Constants.h.
Referenced by GeneticReplication::getNewWorshipers(), and ReachableCell::reachable().
#define MAX_WORSHIPER_SIZE (1 << NB_BITS_SIZE) |
Maximum size of a worshiper
Definition at line 69 of file Constants.h.
Referenced by GeneticCode::GeneticCode(), and HeuristicReplication::getNewWorshipers().
#define MOVE_UP_SPEED ((int) (CELL_SIZE / 2)) |
Speed of moving up
Definition at line 91 of file Constants.h.
Referenced by Display::inputKey(), and Display::inputMouse().
#define NB_BITS_SIZE 4 |
Number of bits coding the size of a Worshiper
Definition at line 65 of file Constants.h.
#define NUMBER_PHEROMONES 3 |
The number of Pheromones of each Colonies
Definition at line 135 of file Constants.h.
Referenced by Colony::Colony(), Colony::getPheromone(), and VisualContext::getPheromones().
#define PAUSE ' ' |
The key associated to the play/pause of the timer
Definition at line 55 of file Constants.h.
Referenced by Display::inputKey().
#define PHEROMONE_LIFE_TIME 10 |
The life-time of a Pheromone
Definition at line 137 of file Constants.h.
Referenced by ReachableCell::addPheromone().
#define PI 3.14159265358979323846 |
#define REDISPLAY_NB_MILLI_SEC 500 |
Time in milli-seconds between each iteration
Definition at line 61 of file Constants.h.
Referenced by Display::Display(), Display::inputKey(), and Display::timer().
#define ROTATE_ANGLE (PI / 8) |
Angle of each rotation
Definition at line 95 of file Constants.h.
Referenced by Display::inputKey(), and Display::inputMouse().
#define ROTATE_LEFT '7' |
The key associated to the left rotation
Definition at line 51 of file Constants.h.
Referenced by Display::inputKey().
#define ROTATE_RIGHT '9' |
The key associated to the right rotation
Definition at line 53 of file Constants.h.
Referenced by Display::inputKey().
#define TRANSLATE_DOWN '2' |
The key associated to the down translation
Definition at line 45 of file Constants.h.
Referenced by Display::inputKey().
#define TRANSLATE_LEFT '4' |
The key associated to the left translation
Definition at line 39 of file Constants.h.
Referenced by Display::inputKey().
#define TRANSLATE_RIGHT '6' |
The key associated to the right translation
Definition at line 41 of file Constants.h.
Referenced by Display::inputKey().
#define TRANSLATE_UP '8' |
The key associated to the up translation
Definition at line 43 of file Constants.h.
Referenced by Display::inputKey().
#define VALIDATE '*' |
The key associated to the validation of Cell (creation of a GodsGiftFood)
Definition at line 57 of file Constants.h.
Referenced by Display::inputKey().
#define WALL_HEIGHT ((int) (CELL_SIZE / 3)) |
#define WORSHIPER_TEXTURE_SIZE 4 |
Size of the Worshipers texture size. Must be a power of two
Definition at line 115 of file Constants.h.
Referenced by Colony::Colony().
#define ZOOM_IN '+' |
The key associated to the zoom in
Definition at line 47 of file Constants.h.
Referenced by Display::inputKey().
#define ZOOM_MAX (3 * CELL_SIZE) |
Distance max of the camera from the center of the scene
Definition at line 105 of file Constants.h.
#define ZOOM_MIN (SIZE_NB_BYTES + 1) |
Distance min of the camera from the center of the scene
Definition at line 103 of file Constants.h.
#define ZOOM_OUT '-' |
The key associated to the zoom out
Definition at line 49 of file Constants.h.
Referenced by Display::inputKey().
#define ZOOM_SPEED ((int) (CELL_SIZE / 2)) |
Zoom speed
Definition at line 93 of file Constants.h.
Referenced by Display::inputKey(), and Display::inputMouse().