work in progress, can be branched/merged

This commit is contained in:
2024-07-13 16:13:20 -04:00
parent ccf6dd0582
commit 5f3565fa86
8 changed files with 289 additions and 0 deletions

20
src/enemies.cc Normal file
View File

@ -0,0 +1,20 @@
#include "enemies.h"
// TODO: implement after characters
void new_enemy(RNG *rng, std::unique_ptr<character> &pch, const position &pos,
bool extras) {
if (extras) {
} else {
}
}
void new_dragon(RNG *rng, std::unique_ptr<character> &pch, const position &pos,
const position &fallback) {
const position nil{0, 0};
if (pos != nil)
pch = std::make_unique<dragon>(rng, pos);
else
pch = std::make_unique<dragon>(rng, fallback);
}