23 lines
470 B
C++
23 lines
470 B
C++
#pragma once
|
|
|
|
#include "libtcod.hpp"
|
|
|
|
class Attacker;
|
|
class Destructible;
|
|
class Ai;
|
|
|
|
class Actor {
|
|
public:
|
|
int x, y; // position on map
|
|
std::string_view ch; // ascii code
|
|
TCOD_ColorRGB col; // color
|
|
std::string name;
|
|
bool blocks;
|
|
Attacker* attacker;
|
|
Destructible* destructible;
|
|
Ai* ai;
|
|
|
|
Actor(int x, int y, std::string_view ch, std::string name, const TCOD_ColorRGB& col);
|
|
void render(TCOD_Console& cons) const;
|
|
void update();
|
|
}; |