Ported Tarras combat system to c++