Thing is - my Tile constructor matches up with the variables that I'm trying to make.
Here's the code for the constructors and variables
//Tile.h
#include <SFML/Graphics.hpp>
#include <string>
using namespace sf;
class Tile {
private:
Tile(sf::Color c, bool moveIn, std::string n);
public:
sf::Color color;
bool canMoveIn;
std::string name;
const static Tile FLOOR, WALL, VOID;
};
//Tile.cpp
#include "Tile.h"
Tile::Tile(sf::Color c, bool moveIn, std::string n) : color(c), name(n) {
canMoveIn = moveIn;
}
const Tile Tile::FLOOR(sf::Color(0, 126, 0), true, "floor");
const Tile Tile::WALL(sf::Color(126, 126, 126), false, "wall");
const Tile Tile::VOID(sf::Color(0,0,0), false, "void");
I'm sorry for turning this into a "Fix my Code" Situation I just have no idea how to fix this since, in my eyes, it's correct, or at least should be.