float point exception, waiting for debugging
This commit is contained in:
21
src/display.cc
Normal file
21
src/display.cc
Normal file
@ -0,0 +1,21 @@
|
||||
#include "display.h"
|
||||
|
||||
display::display(): contents{DISPLAY_HEIGHT} {}
|
||||
|
||||
void display::clear() {
|
||||
for (auto line : contents)
|
||||
line.clear();
|
||||
}
|
||||
|
||||
void display::print(std::ostream &out) const {
|
||||
for (auto line : contents)
|
||||
out << line << std::endl;
|
||||
}
|
||||
|
||||
void display::print_line(const std::string &line, const int linenum) {
|
||||
contents[linenum] = line;
|
||||
}
|
||||
|
||||
void display::print_position(const position &pos, const char ch) {
|
||||
contents[pos.y][pos.x] = ch;
|
||||
}
|
Reference in New Issue
Block a user