work in progress, can be branched/merged
This commit is contained in:
20
src/enemies.cc
Normal file
20
src/enemies.cc
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user