adg5/Actor.cpp
2025-04-20 10:05:21 +10:00

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);
}