|
void | born () |
| Sets the cell's state to alive.
|
|
void | dye () |
| Sets the cell's state to dead.
|
|
void | activate (uint8_t idx) |
| Activates a sensor in the 32bit Active Sensor Bit Map (ASBM) More...
|
|
void | deactivate (uint8_t idx) |
| Deactivates a sensor in the 32bit Active Sensor Bit Map (ASBM) More...
|
|
boolean | isactive (uint8_t bit_pos) |
| Checks if a sensor is active in the 32bit Active Sensor Bit Map (ASBM) More...
|
|
void | updateAge () |
| Updates the Age of the being by seting it to the current time.
|
|
void | updateNGS (Being *_ng) |
| Updates the 8bit Neighborhood State Map (NGS) by setting it's four less significant bits to dead(0) or alive(1) More...
|
|
void | calcDNGS (Being *_ng) |
| Calculates the Diagonal neighbors of the being and sets the four most significant bits of the 8bit Neighborhood State Map (NGS) More...
|
|
The Being class contains the basic attributes of a being, such as its age, its state,
its Active Sensors Bit Mapping (ASBM),
the Neighborhood State Mapping (NGS).
It used for storing automata data and managing sensors.