FYP  1.0.0
Final Year Project -- Alexander Meuer
TerrainInterpreter Class Reference

Parses pixels of an image into bitflags. More...

#include <TerrainInterpreter.h>

Collaboration diagram for TerrainInterpreter:
Collaboration graph

Public Member Functions

 TerrainInterpreter (std::string imagePath)
 
sf::Vector2u getImageSize () const
 
unsigned char interpretPixel (unsigned int x, unsigned int y) const
 
unsigned char interpretArea (unsigned int left, unsigned int top, unsigned int width, unsigned int height) const
 
unsigned int countFlags (unsigned int flags)
 

Static Public Attributes

static const unsigned char GRASS
 
static const unsigned char PATH
 
static const unsigned char NONE
 

Private Attributes

sf::Image mImage
 

Static Private Attributes

static const sf::Color mGrassColor
 
static const sf::Color mPathColor
 

Detailed Description

Parses pixels of an image into bitflags.


The documentation for this class was generated from the following file: