view interps/rail/src/Board.h @ 9200:6b5075d8f571

<boily> le/rn \xc3\xb6rjan/\xc3\x96rjan is the di\xc3\xa6resed twin. He will punctuate your v\xc3\xb6\xe1\xba\x85\xc3\xabls, and maybe a few other unsuspecting letters.
author HackBot
date Sun, 09 Oct 2016 00:31:17 +0000
parents 859f9b4339e6
children
line wrap: on
line source

// Board.h

#ifndef BOARD_H_RAIL_1
#define BOARD_H_RAIL_1

#include "Vec.h"

class Board
{
public:
  Board();
  ~Board();
  Board(std::string const & newName, std::list<std::string> const & newData);
  void reset(std::string const &newName,
             std::list<std::string> const & newData);

  char at(Vec pos) const;
  std::string const & getName(void) const;
  int getMinX(void) const;
  int getMaxX(void) const;
  int getMinY(void) const;
  int getMaxY(void) const;
private:
  std::string name;
  std::vector<std::string> data;
  int maxX;
  int maxY;
};

#endif