10 lines
258 B
C++
10 lines
258 B
C++
#include "libtcod.hpp"
|
|
#include "Actor.h"
|
|
|
|
Actor::Actor(int x, int y, std::string_view ch, const TCOD_ColorRGB& col) :
|
|
x(x), y(y), ch(ch), col(col) {
|
|
}
|
|
|
|
void Actor::render(TCOD_Console& cons) const {
|
|
tcod::print(cons, { x, y }, ch, col, std::nullopt);
|
|
} |