mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Introduce pheromones
This commit is contained in:
parent
61cc3ef015
commit
a821e72661
9 changed files with 133 additions and 1 deletions
3
map.h
3
map.h
|
@ -1,6 +1,8 @@
|
|||
#ifndef BRMLIFE__MAP_H
|
||||
#define BRMLIFE__MAP_H
|
||||
|
||||
#include "pheromone.h"
|
||||
|
||||
class agent;
|
||||
class map;
|
||||
|
||||
|
@ -10,6 +12,7 @@ public:
|
|||
class map ↦
|
||||
|
||||
class agent *agent;
|
||||
class pheromones pheromones;
|
||||
|
||||
tile(int x_, int y_, class map &map_)
|
||||
: x(x_), y(y_), map(map_), agent(NULL) {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue