better managed ownership (two new functions in level.h)

This commit is contained in:
2024-07-16 23:36:31 -04:00
parent 3b164bbe9f
commit 3232d91ac1
14 changed files with 74 additions and 50 deletions

View File

@ -8,13 +8,13 @@ enum game_command : int;
class player_base: public character {
protected:
int gold_cnt;
potion_list potions;
potion_own_list potions;
public:
player_base(RNG *rng, const feature enabled_features,
const enum race &nrace);
virtual long_result move(level *lvl, const position &p);
virtual long_result apply(potion *p);
virtual long_result apply(std::unique_ptr<potion> p);
virtual long_result attack(character *ch) override;
virtual long_result get_hit(character *ch, const int tATK,