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

13 lines
282 B
C++

#pragma once
#include "libtcod.hpp"
class Actor {
public:
int x, y; // position on map
std::string_view ch; // ascii code
TCOD_ColorRGB col; // color
Actor(int x, int y, std::string_view ch, const TCOD_ColorRGB& col);
void render(TCOD_Console& cons) const;
};