finished the bulk of game
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user