Clean up the DinkyECSso that it's easier to understand and more obvious what a fact vs. component is.

This commit is contained in:
Zed A. Shaw 2024-10-29 07:33:00 -04:00
parent 4ed06b10b1
commit 143fe7784c
7 changed files with 82 additions and 105 deletions

View file

@ -1,7 +1,7 @@
#include "combat.hpp"
#include "rand.hpp"
int Combat::fight(Combat &target) {
int Combat::attack(Combat &target) {
int attack = Random::uniform<int>(0,1);
int my_dmg = 0;