From b8b3af362a669bde852b039d932c103abc25242b Mon Sep 17 00:00:00 2001 From: a25liang Date: Sun, 30 Jun 2024 11:56:27 -0400 Subject: [PATCH] Added some TODO for minor (important) fixes --- .gitignore | 3 +++ src/characters.cc | 1 + src/races.cc | 1 + 3 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index e5c244d..a40c2da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ *.~undo-tree~ *.dSYM~ *#* +*.o +*.d +cc3k \ No newline at end of file diff --git a/src/characters.cc b/src/characters.cc index 5cbb57e..e47eb28 100644 --- a/src/characters.cc +++ b/src/characters.cc @@ -69,6 +69,7 @@ void character::set_hostile(const bool is_hostile) { } void character::apply_buff(const stat_name statn, const int amount) { + // TODO: add checks for bounds switch (statn) { case stat_name::HP: HP += amount; diff --git a/src/races.cc b/src/races.cc index 882afbe..532cac1 100644 --- a/src/races.cc +++ b/src/races.cc @@ -10,6 +10,7 @@ shade::shade(const position_list &available_positions): hostile = true; } +// TODO: this shouldn't be a pure virtual functions // IMPORTANT: remember to check if player is on the stairs result shade::move(const direction dir, const position_list &available_positions) {