xaya / taurion_gsp

Taurion - A Fully Decentralised MMO built for the Xaya Platform.

Home Page:https://taurion.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get rid of "Fighter" class

domob1812 opened this issue · comments

Currently, Fighter is essentially a manual polymorphism implementation (a wrapper around either Character or Building handles, exposing the combat-related things with a common interface).

Instead of that, we should just use the new CombatEntity superclass to access common stuff, and then use std::unique_ptr<CombatEntity> as the handle type. FighterTable should probably stay, so that we can query the union of buildings and characters easily.