#ifndef CELL_H #define CELL_H #include class Cell { public: Cell(sf::Vector2f position, std::string genCode, float health, float feedness, float generAge, bool isAlive, bool canDivide, float radius, sf::Color color) { this->position=position; this->genCode=genCode; this->health=health; this->feedness=feedness; this->generAge=generAge; this->isAlive=isAlive; this->canDivide=canDivide; this->radius=radius; this->color=color; speed = sf::Vector2f(0, 0); } sf::Vector2f position; sf::Vector2f speed; std::string genCode; float health; float feedness; float generAge; bool isAlive = true; bool canDivide = false; float radius; sf::Color color; const std::string PerfectNutritionCode = "AATGA"; const std::string PerfectDivisionCode = "GTTTGCCGGA"; const std::string PerfectDeathCode = "GACG"; const std::string nucleotides[4] = {"A","T","G","C"}; friend class GameLogic; }; #endif // CELL_H