46 lines
510 B
C++
46 lines
510 B
C++
#ifndef DNA_H
|
|
#define DNA_H
|
|
|
|
#include <cinttypes>
|
|
#include <array>
|
|
|
|
#include <raylib.h>
|
|
|
|
#define MAX_DEPTH 11
|
|
|
|
struct uint128
|
|
{
|
|
uint32_t a;
|
|
uint32_t b;
|
|
uint32_t c;
|
|
uint32_t d;
|
|
};
|
|
|
|
struct Moon
|
|
{
|
|
float x;
|
|
float y;
|
|
float size;
|
|
};
|
|
|
|
struct Branch
|
|
{
|
|
Color color;
|
|
uint8_t numOfBranches;
|
|
float lenghthRatio;
|
|
};
|
|
|
|
struct Dna
|
|
{
|
|
Moon moon;
|
|
int colorSet;
|
|
int time;
|
|
uint128 mountenSeed;
|
|
uint128 starSeed;
|
|
std::array<Branch, MAX_DEPTH> branches;
|
|
};
|
|
|
|
void newDna(Dna &dna);
|
|
|
|
#endif /* DNA_H */
|