Mostly pulled out all of the ftxui rendering into cleaner areas.
This commit is contained in:
parent
710076edfb
commit
10e5f53292
3 changed files with 13 additions and 2 deletions
|
@ -13,12 +13,15 @@ enum class EntityEvent {
|
|||
|
||||
class Entity : public DeadSimpleFSM<EntityState, EntityEvent> {
|
||||
public:
|
||||
Point location;
|
||||
Point location{0,0};
|
||||
int hp = 20;
|
||||
int damage = 10;
|
||||
|
||||
Entity() {
|
||||
}
|
||||
|
||||
Entity(Point loc) : location(loc) {
|
||||
};
|
||||
}
|
||||
|
||||
// disable copy
|
||||
Entity(Entity &e) = delete;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue