You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
624 B

9 years ago
#pragma once
#include <SFML/System/Vector2.hpp>
#include <vector>
class Node {
public:
6 years ago
static const int x_bound = 500;
static const int y_bound = 500;
9 years ago
Node(sf::Vector2i position_);
6 years ago
Node(sf::Vector2i position_, std::vector<int> color);
9 years ago
~Node();
void Revive();
int CurrentState();
9 years ago
void ShiftState();
void Update(std::vector<Node> *node_vec);
6 years ago
void Dim();
float r;
float g;
float b;
float a;
float b_r;
float b_g;
float b_b;
float b_a;
9 years ago
private:
sf::Vector2i linear_to_multi(int position_);
int multi_to_linear(sf::Vector2i position);
9 years ago
sf::Vector2i position;
int curr_state;
int next_state;
6 years ago
9 years ago
};
6 years ago