changed all non-owned unique_ptr access to reference to the object itself
This commit is contained in:
@ -19,16 +19,13 @@
|
||||
// #include "inventory.h" // Reserved for later
|
||||
|
||||
class character; // forward declaration
|
||||
extern RNG rng;
|
||||
|
||||
// Note: player should not be in the character list
|
||||
typedef std::vector<character> character_list;
|
||||
|
||||
class character {
|
||||
public:
|
||||
character(const race &nrace); // fills out the starting stats
|
||||
|
||||
~character(); // placeholder
|
||||
character(RNG &rng, const race &nrace); // fills out the starting stats
|
||||
|
||||
// usually I wouldn't do this but considering that the map has
|
||||
// a super small size an O(n) solution is acceptable
|
||||
@ -69,6 +66,7 @@ public:
|
||||
// void apply_buff(const stat_name statn, const float mul);
|
||||
// reserved for later
|
||||
protected:
|
||||
RNG &rng;
|
||||
const enum race race;
|
||||
|
||||
int HP;
|
||||
|
Reference in New Issue
Block a user