65 const std::array<std::string, 2>
autoPaths = {
"Auto_Button_Checked",
"Auto_Button_Unchecked"};
69 const std::array<Color, 2>
graphColors{{{246, 245, 250, 255}, {108, 108, 108, 255}}};
95 static float getHighestSense(
const std::vector<ss::types::Cycle> &cycle);
97 static float getHighestSpeed(
const std::vector<ss::types::Cycle> &cycle);
Definition: SceneManager.h:8
virtual void Start()
Method which is called in the start of the Graph page.
Definition: graph.cpp:15
float currentSpeed
Definition: graph.h:35
float currentSense
Definition: graph.h:34
static float getGrowthPercentage(int lastedBef, int lastedCur)
Method for getting the Growth percentage.
Definition: graph.cpp:127
Texture2D slider_Box
Definition: graph.h:19
Texture2D data_Container
Definition: graph.h:21
std::pair< float, float > maxSenseAndSpeed
Definition: graph.h:47
static float getHighestSense(const std::vector< ss::types::Cycle > &cycle)
Getter highest sense function.
Definition: graph.cpp:63
enum ss::pl::graph::Graph::AutoState currentAutoState
void checkCollision()
Method for checking the collision on click.
Definition: graph.cpp:298
std::vector< ss::types::Trait > traitData
Definition: graph.h:68
Graph(std::string sceneName, SceneManager &sceneManager)
Constructor for the Graph class.
Definition: graph.cpp:9
virtual void Update()
Method which is called every frame.
Definition: graph.cpp:32
AutoState
Definition: graph.h:60
Texture2D auto_Button
Definition: graph.h:20
void automateCycle()
Method for automating the cycle change.
Definition: graph.cpp:397
void drawGraph()
Method for drawing the Graph body.
Definition: graph.cpp:178
virtual void onExit()
Method which is called when we exit the program or the Graph page.
Definition: graph.cpp:52
const std::array< Color, 2 > graphColors
Definition: graph.h:69
Texture2D cycle_Next
Definition: graph.h:17
void getTraitData(size_t cycle)
Method for loading trait data.
Definition: graph.cpp:147
bool autoCycle
Definition: graph.h:36
virtual void deleteAssets()
Method for deallocating the dynamically created assets.
Definition: graph.cpp:284
int cycleSpeed
Definition: graph.h:37
Vector2 graphLine
Definition: graph.h:25
static float getDecreasedPercentage(int lastedBef, int lastedCur)
Method for getting the Decreased percentage.
Definition: graph.cpp:138
Texture2D graph_Container
Definition: graph.h:16
const std::array< std::string, 2 > autoPaths
Definition: graph.h:65
SceneManager & m_sceneManager
Definition: graph.h:92
unsigned int totalAlive
Definition: graph.h:33
static std::string fileName
Definition: graph.h:79
void drawMenu()
Method for drawing the menu in the graph page.
Definition: graph.cpp:232
Font fontInter
Definition: graph.h:29
std::vector< ss::types::Cycle > cycleInfo
Definition: graph.h:42
float fElapsedTime
Definition: graph.h:38
virtual void loadAssets()
Method for loading all the needed assets in the graph page.
Definition: graph.cpp:252
size_t currentCycle
Definition: graph.h:32
static float getHighestSpeed(const std::vector< ss::types::Cycle > &cycle)
Getter highest speed function.
Definition: graph.cpp:89
Texture2D cycle_Prev
Definition: graph.h:18
Vector2 calculateTraitPosition(float sence, float speed)
Method for calculating trait data position.
Definition: graph.cpp:170
void drawTrait()
Method for drawing trait data into the graph.
Definition: graph.cpp:155
Vector2 mousePos
Definition: graph.h:24
Vector2 graphText
Definition: graph.h:26
Texture2D backArrow_Texture
Definition: graph.h:15
std::pair< float, float > getHighestSenseAndSpeed(const std::vector< ss::types::Cycle > &cycle)
Function returning the highest sense and speed.
Definition: graph.cpp:116
std::string populationChange
Definition: graph.h:40