finished the bulk of game

This commit is contained in:
2024-07-14 21:32:41 -04:00
parent b3475b7530
commit af8bc4112c
110 changed files with 1876 additions and 1481 deletions

View File

@ -2,10 +2,12 @@
#define __POTION_H__
#include <vector>
#include "constants.h"
#include "fraction.h"
#include "display.h"
enum potion_type : int;
enum race : int;
// IMPORTANT: pop all potions of duration == 0, and when entering a
// new level, pop all potions of duration == -1
@ -32,10 +34,13 @@ public:
int get_duration() const;
position get_pos() const;
void set_pos(const position &npos);
virtual const char *get_name() const = 0;
virtual void print(display *out);
};
typedef std::vector<potion *> potion_list;
potion *get_potion_at(const position &pos, potion_list &plist);
#endif