13 lines
282 B
C++
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;
|
|
}; |