14 lines
332 B
C++
14 lines
332 B
C++
#include "potions.h"
|
|
|
|
void new_potion(std::unique_ptr<potion> &pp, potion_type type,
|
|
const position &pos) {
|
|
switch (type) {
|
|
case potion_type::restore_health:
|
|
pp = std::make_unique<class restore_health>(pos);
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
}
|