starting on round logic

This commit is contained in:
2026-08-25 21:28:37 -05:00
parent 2e6711e7ce
commit 8f16777879
4 changed files with 213 additions and 0 deletions

20
src/Creature.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "Creature.h"
bool SpeciesEatsWhenNormal(Species species) {
switch (species) {
case Species::Raccoon:
case Species::Opossum:
return true;
case Species::Fox:
case Species::Deer:
return false;
}
return true;
}
bool WouldEatMarshmallow(const Creature &c) {
bool n = SpeciesEatsWhenNormal(c.species);
return c.behaves_normally ? n : !n;
}