moved files out of subdirectories, added required documentation
This commit is contained in:
@ -7,12 +7,12 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
#include "input/file_input.h"
|
#include "file_input.h"
|
||||||
#include "output/file_output.h"
|
#include "file_output.h"
|
||||||
#include "input/console_input.h"
|
#include "console_input.h"
|
||||||
#include "output/console_output.h"
|
#include "console_output.h"
|
||||||
#include "input/curses_input.h"
|
#include "curses_input.h"
|
||||||
#include "output/curses_output.h"
|
#include "curses_output.h"
|
||||||
#include "rng.h"
|
#include "rng.h"
|
||||||
|
|
||||||
feature proc_args(int argc, char **argv,
|
feature proc_args(int argc, char **argv,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "assassin.h"
|
#include "assassin.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
assassin::assassin(RNG *rng, const feature enabled_features):
|
assassin::assassin(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::ASSASSIN} {};
|
player_base{rng, enabled_features, race::ASSASSIN} {};
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __ASSASSIN_H__
|
#ifndef __ASSASSIN_H__
|
||||||
#define __ASSASSIN_H__
|
#define __ASSASSIN_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class assassin final: public player_base {
|
class assassin final: public player_base {
|
||||||
inline static const fraction INF_HIT_RATE = {0x3F3F3F3F, 1};
|
inline static const fraction INF_HIT_RATE = {0x3F3F3F3F, 1};
|
@ -1,6 +1,6 @@
|
|||||||
#include "baby_dragon.h"
|
#include "baby_dragon.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
baby_dragon::baby_dragon(RNG *rng, const feature enabled_features,
|
baby_dragon::baby_dragon(RNG *rng, const feature enabled_features,
|
||||||
const position &pos, const int gen_room_num):
|
const position &pos, const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __BABY_DRAGON_H__
|
#ifndef __BABY_DRAGON_H__
|
||||||
#define __BABY_DRAGON_H__
|
#define __BABY_DRAGON_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class baby_dragon final: public enemy_base {
|
class baby_dragon final: public enemy_base {
|
||||||
public:
|
public:
|
@ -1,7 +1,7 @@
|
|||||||
#include "berzerk_brew.h"
|
#include "berzerk_brew.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
berzerk_brew::berzerk_brew(const position &pos):
|
berzerk_brew::berzerk_brew(const position &pos):
|
||||||
potion{potion_type::BERZERK_BREW, DURATION, pos} {}
|
potion{potion_type::BERZERK_BREW, DURATION, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __BERZERK_BREW_H__
|
#ifndef __BERZERK_BREW_H__
|
||||||
#define __BERZERK_BREW_H__
|
#define __BERZERK_BREW_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class berzerk_brew final: public potion {
|
class berzerk_brew final: public potion {
|
||||||
static const int ATK_MUL = 2;
|
static const int ATK_MUL = 2;
|
@ -1,7 +1,7 @@
|
|||||||
#include "boost_atk.h"
|
#include "boost_atk.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __BOOST_ATK_H__
|
#ifndef __BOOST_ATK_H__
|
||||||
#define __BOOST_ATK_H__
|
#define __BOOST_ATK_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class boost_atk final: public potion {
|
class boost_atk final: public potion {
|
||||||
static const int BOOST_ATK = 5;
|
static const int BOOST_ATK = 5;
|
@ -1,7 +1,7 @@
|
|||||||
#include "boost_def.h"
|
#include "boost_def.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
|
|
||||||
boost_def::boost_def(const position &pos):
|
boost_def::boost_def(const position &pos):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __BOOST_DEF_H__
|
#ifndef __BOOST_DEF_H__
|
||||||
#define __BOOST_DEF_H__
|
#define __BOOST_DEF_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class boost_def final: public potion {
|
class boost_def final: public potion {
|
||||||
static const int BOOST_DEF = 5;
|
static const int BOOST_DEF = 5;
|
@ -1,7 +1,7 @@
|
|||||||
#include "borrow_life.h"
|
#include "borrow_life.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
borrow_life::borrow_life(const position &pos):
|
borrow_life::borrow_life(const position &pos):
|
||||||
potion{potion_type::BORROW_LIFE, DURATION, pos} {}
|
potion{potion_type::BORROW_LIFE, DURATION, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __BORROW_LIFE_H__
|
#ifndef __BORROW_LIFE_H__
|
||||||
#define __BORROW_LIFE_H__
|
#define __BORROW_LIFE_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class borrow_life final: public potion {
|
class borrow_life final: public potion {
|
||||||
static const int GIVE_HP = 50;
|
static const int GIVE_HP = 50;
|
@ -1,6 +1,6 @@
|
|||||||
#include "brawler.h"
|
#include "brawler.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
brawler::brawler(RNG *rng, const feature enabled_features):
|
brawler::brawler(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::BRAWLER} {};
|
player_base{rng, enabled_features, race::BRAWLER} {};
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __BRAWLER_H__
|
#ifndef __BRAWLER_H__
|
||||||
#define __BRAWLER_H__
|
#define __BRAWLER_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class brawler final: public player_base {
|
class brawler final: public player_base {
|
||||||
public:
|
public:
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
console_input::console_input(std::istream &cin):
|
console_input::console_input(std::istream &cin):
|
||||||
in{cin} {}
|
in{cin} {}
|
@ -2,7 +2,7 @@
|
|||||||
#define __CONSOLE_INPUT_H__
|
#define __CONSOLE_INPUT_H__
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "../input.h"
|
#include "input.h"
|
||||||
|
|
||||||
class console_input final : public input {
|
class console_input final : public input {
|
||||||
private:
|
private:
|
@ -4,7 +4,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
console_output::console_output(std::ostream &cout): out{cout} {}
|
console_output::console_output(std::ostream &cout): out{cout} {}
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
#define __CONSOLE_OUTPUT_H__
|
#define __CONSOLE_OUTPUT_H__
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "../output.h"
|
#include "output.h"
|
||||||
|
|
||||||
class console_output final : public output {
|
class console_output final : public output {
|
||||||
private:
|
private:
|
@ -1,7 +1,7 @@
|
|||||||
#include "continuous_restoration.h"
|
#include "continuous_restoration.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
continuous_restoration::continuous_restoration(const position &pos):
|
continuous_restoration::continuous_restoration(const position &pos):
|
||||||
potion{potion_type::CONTINUOUS_RESTORATION, DURATION, pos} {}
|
potion{potion_type::CONTINUOUS_RESTORATION, DURATION, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __CONTINUOUS_RESTORATION_H__
|
#ifndef __CONTINUOUS_RESTORATION_H__
|
||||||
#define __CONTINUOUS_RESTORATION_H__
|
#define __CONTINUOUS_RESTORATION_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class continuous_restoration final: public potion {
|
class continuous_restoration final: public potion {
|
||||||
static const int GAIN_HEALTH = 3;
|
static const int GAIN_HEALTH = 3;
|
@ -1,6 +1,6 @@
|
|||||||
#include "curses_input.h"
|
#include "curses_input.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
curses_input::curses_input(cursor *new_curse):
|
curses_input::curses_input(cursor *new_curse):
|
||||||
curse{new_curse} {}
|
curse{new_curse} {}
|
@ -2,8 +2,8 @@
|
|||||||
#define __CURSES_INPUT_H__
|
#define __CURSES_INPUT_H__
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "../input.h"
|
#include "input.h"
|
||||||
#include "../cursor.h"
|
#include "cursor.h"
|
||||||
|
|
||||||
class curses_input final: public input {
|
class curses_input final: public input {
|
||||||
private:
|
private:
|
@ -1,6 +1,6 @@
|
|||||||
#include "curses_output.h"
|
#include "curses_output.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
curses_output::curses_output(cursor *new_curse):
|
curses_output::curses_output(cursor *new_curse):
|
||||||
curse{new_curse} {}
|
curse{new_curse} {}
|
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "../cursor.h"
|
#include "cursor.h"
|
||||||
#include "../output.h"
|
#include "output.h"
|
||||||
|
|
||||||
class curses_output final : public output {
|
class curses_output final : public output {
|
||||||
private:
|
private:
|
BIN
src/design.pdf
Normal file
BIN
src/design.pdf
Normal file
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
#include "dragon.h"
|
#include "dragon.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
#include "../level.h"
|
#include "level.h"
|
||||||
|
|
||||||
dragon::dragon(RNG *rng, const feature enabled_features, const position &pos,
|
dragon::dragon(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num, const position &guards):
|
const int gen_room_num, const position &guards):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __DRAGON_H__
|
#ifndef __DRAGON_H__
|
||||||
#define __DRAGON_H__
|
#define __DRAGON_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class dragon final: public enemy_base {
|
class dragon final: public enemy_base {
|
||||||
const position guards;
|
const position guards;
|
@ -1,6 +1,6 @@
|
|||||||
#include "drow.h"
|
#include "drow.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
drow::drow(RNG *rng, const feature enabled_features):
|
drow::drow(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::DROW} {}
|
player_base{rng, enabled_features, race::DROW} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __DROW_H__
|
#ifndef __DROW_H__
|
||||||
#define __DROW_H__
|
#define __DROW_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class drow final: public player_base {
|
class drow final: public player_base {
|
||||||
public:
|
public:
|
@ -1,6 +1,6 @@
|
|||||||
#include "dwarf.h"
|
#include "dwarf.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
dwarf::dwarf(RNG *rng, const feature enabled_features, const position &pos,
|
dwarf::dwarf(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num):
|
const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __DWARF_H__
|
#ifndef __DWARF_H__
|
||||||
#define __DWARF_H__
|
#define __DWARF_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class dwarf final: public enemy_base {
|
class dwarf final: public enemy_base {
|
||||||
public:
|
public:
|
@ -1,7 +1,7 @@
|
|||||||
#include "echoing_resilience.h"
|
#include "echoing_resilience.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
echoing_resilience::echoing_resilience(const position &pos):
|
echoing_resilience::echoing_resilience(const position &pos):
|
||||||
potion{potion_type::ECHOING_RESIL, DURATION, pos} {}
|
potion{potion_type::ECHOING_RESIL, DURATION, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __ECHOING_RESILIENCE_H__
|
#ifndef __ECHOING_RESILIENCE_H__
|
||||||
#define __ECHOING_RESILIENCE_H__
|
#define __ECHOING_RESILIENCE_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class echoing_resilience final: public potion {
|
class echoing_resilience final: public potion {
|
||||||
static const int GAIN_HEALTH = 7;
|
static const int GAIN_HEALTH = 7;
|
@ -1,6 +1,6 @@
|
|||||||
#include "elf.h"
|
#include "elf.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
elf::elf(RNG *rng, const feature enabled_features, const position &pos,
|
elf::elf(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num):
|
const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __ELF_H__
|
#ifndef __ELF_H__
|
||||||
#define __ELF_H__
|
#define __ELF_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class elf final: public enemy_base {
|
class elf final: public enemy_base {
|
||||||
public:
|
public:
|
@ -1,19 +1,19 @@
|
|||||||
#include "enemies.h"
|
#include "enemies.h"
|
||||||
|
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
#include "enemies/dragon.h"
|
#include "dragon.h"
|
||||||
#include "enemies/dwarf.h"
|
#include "dwarf.h"
|
||||||
#include "enemies/elf.h"
|
#include "elf.h"
|
||||||
#include "enemies/halfling.h"
|
#include "halfling.h"
|
||||||
#include "enemies/human.h"
|
#include "human.h"
|
||||||
#include "enemies/merchant.h"
|
#include "merchant.h"
|
||||||
#include "enemies/orc.h"
|
#include "orc.h"
|
||||||
#include "enemies/viking.h"
|
#include "viking.h"
|
||||||
#include "enemies/swordsman.h"
|
#include "swordsman.h"
|
||||||
#include "enemies/leprechaun.h"
|
#include "leprechaun.h"
|
||||||
#include "enemies/witch.h"
|
#include "witch.h"
|
||||||
#include "enemies/hacker.h"
|
#include "hacker.h"
|
||||||
#include "enemies/baby_dragon.h"
|
#include "baby_dragon.h"
|
||||||
|
|
||||||
std::unique_ptr<enemy_base> new_dragon(RNG *rng, const position &pos,
|
std::unique_ptr<enemy_base> new_dragon(RNG *rng, const position &pos,
|
||||||
const position &fallback,
|
const position &fallback,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
file_input::file_input(std::ifstream &&ifs):
|
file_input::file_input(std::ifstream &&ifs):
|
||||||
in{std::move(ifs)} {}
|
in{std::move(ifs)} {}
|
@ -2,7 +2,7 @@
|
|||||||
#define __FILE_INPUT_H__
|
#define __FILE_INPUT_H__
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "../input.h"
|
#include "input.h"
|
||||||
|
|
||||||
class file_input final : public input {
|
class file_input final : public input {
|
||||||
private:
|
private:
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
file_output::file_output(std::ofstream &&ofs):
|
file_output::file_output(std::ofstream &&ofs):
|
||||||
out{std::move(ofs)} {}
|
out{std::move(ofs)} {}
|
@ -2,7 +2,7 @@
|
|||||||
#define __FILE_OUTPUT_H__
|
#define __FILE_OUTPUT_H__
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "../output.h"
|
#include "output.h"
|
||||||
|
|
||||||
class file_output final : public output {
|
class file_output final : public output {
|
||||||
private:
|
private:
|
@ -1,7 +1,7 @@
|
|||||||
#include "fine_booze.h"
|
#include "fine_booze.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
fine_booze::fine_booze(const position &pos):
|
fine_booze::fine_booze(const position &pos):
|
||||||
potion{potion_type::FINE_BOOZE, DURATION, pos} {}
|
potion{potion_type::FINE_BOOZE, DURATION, pos} {}
|
@ -1,8 +1,8 @@
|
|||||||
#ifndef __FINE_BOOZE_H__
|
#ifndef __FINE_BOOZE_H__
|
||||||
#define __FINE_BOOZE_H__
|
#define __FINE_BOOZE_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
class fine_booze final: public potion {
|
class fine_booze final: public potion {
|
||||||
static const int GAIN_HP = 2;
|
static const int GAIN_HP = 2;
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
#include "pc.h"
|
#include "pc.h"
|
||||||
#include "enemies/dragon.h"
|
#include "dragon.h"
|
||||||
|
|
||||||
game::game(const enum race starting_race,
|
game::game(const enum race starting_race,
|
||||||
const feature enabled_features,
|
const feature enabled_features,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "goblin.h"
|
#include "goblin.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
goblin::goblin(RNG *rng, const feature enabled_features):
|
goblin::goblin(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::GOBLIN} {};
|
player_base{rng, enabled_features, race::GOBLIN} {};
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __GOBLIN_H__
|
#ifndef __GOBLIN_H__
|
||||||
#define __GOBLIN_H__
|
#define __GOBLIN_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class goblin final: public player_base {
|
class goblin final: public player_base {
|
||||||
static const int GAIN_GOLD = 5;
|
static const int GAIN_GOLD = 5;
|
@ -1,6 +1,6 @@
|
|||||||
#include "hacker.h"
|
#include "hacker.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
hacker::hacker(RNG *rng, const feature enabled_features, const position &pos,
|
hacker::hacker(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num):
|
const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __HACKER_H__
|
#ifndef __HACKER_H__
|
||||||
#define __HACKER_H__
|
#define __HACKER_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class hacker final: public enemy_base {
|
class hacker final: public enemy_base {
|
||||||
static const int RAND_STR_LEN_MIN = 10;
|
static const int RAND_STR_LEN_MIN = 10;
|
@ -1,6 +1,6 @@
|
|||||||
#include "halfling.h"
|
#include "halfling.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
fraction halfling::HIT_RATE_MUL = {1, 2};
|
fraction halfling::HIT_RATE_MUL = {1, 2};
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __HALFLING_H__
|
#ifndef __HALFLING_H__
|
||||||
#define __HALFLING_H__
|
#define __HALFLING_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class halfling final: public enemy_base {
|
class halfling final: public enemy_base {
|
||||||
static fraction HIT_RATE_MUL;
|
static fraction HIT_RATE_MUL;
|
@ -1,7 +1,7 @@
|
|||||||
#include "human.h"
|
#include "human.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
#include "../level.h"
|
#include "level.h"
|
||||||
|
|
||||||
human::human(RNG *rng, const feature enabled_features, const position &pos,
|
human::human(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num):
|
const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __HUMAN_H__
|
#ifndef __HUMAN_H__
|
||||||
#define __HUMAN_H__
|
#define __HUMAN_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class human final: public enemy_base {
|
class human final: public enemy_base {
|
||||||
public:
|
public:
|
@ -1,7 +1,7 @@
|
|||||||
#include "ironclad_ward.h"
|
#include "ironclad_ward.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
ironclad_ward::ironclad_ward(const position &pos):
|
ironclad_ward::ironclad_ward(const position &pos):
|
||||||
potion{potion_type::IRONCLAD_WARD, DURATION, pos} {}
|
potion{potion_type::IRONCLAD_WARD, DURATION, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __IRONCLAD_WARD_H__
|
#ifndef __IRONCLAD_WARD_H__
|
||||||
#define __IRONCLAD_WARD_H__
|
#define __IRONCLAD_WARD_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class ironclad_ward final: public potion {
|
class ironclad_ward final: public potion {
|
||||||
inline static const float ATK_MUL = 0.5f;
|
inline static const float ATK_MUL = 0.5f;
|
@ -1,8 +1,8 @@
|
|||||||
#include "leprechaun.h"
|
#include "leprechaun.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
#include "../level.h"
|
#include "level.h"
|
||||||
|
|
||||||
leprechaun::leprechaun(RNG *rng, const feature enabled_features,
|
leprechaun::leprechaun(RNG *rng, const feature enabled_features,
|
||||||
const position &pos,
|
const position &pos,
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __LEPRECHAUN_H__
|
#ifndef __LEPRECHAUN_H__
|
||||||
#define __LEPRECHAUN_H__
|
#define __LEPRECHAUN_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class leprechaun final: public enemy_base {
|
class leprechaun final: public enemy_base {
|
||||||
static const int STEAL_GOLD = 3;
|
static const int STEAL_GOLD = 3;
|
@ -1,8 +1,8 @@
|
|||||||
#include "merchant.h"
|
#include "merchant.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
#include "../gold.h"
|
#include "gold.h"
|
||||||
#include "../level.h"
|
#include "level.h"
|
||||||
|
|
||||||
merchant::merchant(RNG *rng, const feature enabled_features,
|
merchant::merchant(RNG *rng, const feature enabled_features,
|
||||||
const position &pos, const int gen_room_num):
|
const position &pos, const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __MERCHANT_H__
|
#ifndef __MERCHANT_H__
|
||||||
#define __MERCHANT_H__
|
#define __MERCHANT_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class merchant final: public enemy_base {
|
class merchant final: public enemy_base {
|
||||||
public:
|
public:
|
@ -1,6 +1,6 @@
|
|||||||
#include "monk.h"
|
#include "monk.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
monk::monk(RNG *rng, const feature enabled_features):
|
monk::monk(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, MONK} {}
|
player_base{rng, enabled_features, MONK} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __MONK_H__
|
#ifndef __MONK_H__
|
||||||
#define __MONK_H__
|
#define __MONK_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class monk final: public player_base {
|
class monk final: public player_base {
|
||||||
static const int GAIN_HP = 2;
|
static const int GAIN_HP = 2;
|
@ -1,6 +1,6 @@
|
|||||||
#include "mr_goose.h"
|
#include "mr_goose.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
mr_goose::mr_goose(RNG *rng, const feature enabled_features):
|
mr_goose::mr_goose(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::MR_GOOSE} {
|
player_base{rng, enabled_features, race::MR_GOOSE} {
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __MR_GOOSE_H__
|
#ifndef __MR_GOOSE_H__
|
||||||
#define __MR_GOOSE_H__
|
#define __MR_GOOSE_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class mr_goose final: public player_base {
|
class mr_goose final: public player_base {
|
||||||
public:
|
public:
|
@ -1,6 +1,6 @@
|
|||||||
#include "orc.h"
|
#include "orc.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
orc::orc(RNG *rng, const feature enabled_features, const position &pos,
|
orc::orc(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num):
|
const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __ORC_H__
|
#ifndef __ORC_H__
|
||||||
#define __ORC_H__
|
#define __ORC_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class orc final: public enemy_base {
|
class orc final: public enemy_base {
|
||||||
public:
|
public:
|
20
src/pc.cc
20
src/pc.cc
@ -1,16 +1,16 @@
|
|||||||
#include "pc.h"
|
#include "pc.h"
|
||||||
|
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
#include "player/goblin.h"
|
#include "goblin.h"
|
||||||
#include "player/drow.h"
|
#include "drow.h"
|
||||||
#include "player/shade.h"
|
#include "shade.h"
|
||||||
#include "player/troll.h"
|
#include "troll.h"
|
||||||
#include "player/vampire.h"
|
#include "vampire.h"
|
||||||
#include "player/t_800.h"
|
#include "t_800.h"
|
||||||
#include "player/assassin.h"
|
#include "assassin.h"
|
||||||
#include "player/monk.h"
|
#include "monk.h"
|
||||||
#include "player/brawler.h"
|
#include "brawler.h"
|
||||||
#include "player/mr_goose.h"
|
#include "mr_goose.h"
|
||||||
|
|
||||||
std::unique_ptr<player_base> init_player(RNG *rng,
|
std::unique_ptr<player_base> init_player(RNG *rng,
|
||||||
const feature enabled_features, const enum race &r) {
|
const feature enabled_features, const enum race &r) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "poison_health.h"
|
#include "poison_health.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
poison_health::poison_health(const position &pos):
|
poison_health::poison_health(const position &pos):
|
||||||
potion{potion_type::POISON_HEALTH, 1, pos} {}
|
potion{potion_type::POISON_HEALTH, 1, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __POISON_HEALTH_H__
|
#ifndef __POISON_HEALTH_H__
|
||||||
#define __POISON_HEALTH_H__
|
#define __POISON_HEALTH_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class poison_health final: public potion {
|
class poison_health final: public potion {
|
||||||
static const int LOSE_HEALTH = 10;
|
static const int LOSE_HEALTH = 10;
|
@ -1,20 +1,20 @@
|
|||||||
#include "potions.h"
|
#include "potions.h"
|
||||||
|
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
#include "potions/restore_health.h"
|
#include "restore_health.h"
|
||||||
#include "potions/boost_atk.h"
|
#include "boost_atk.h"
|
||||||
#include "potions/boost_def.h"
|
#include "boost_def.h"
|
||||||
#include "potions/poison_health.h"
|
#include "poison_health.h"
|
||||||
#include "potions/wound_atk.h"
|
#include "wound_atk.h"
|
||||||
#include "potions/wound_def.h"
|
#include "wound_def.h"
|
||||||
#include "potions/continuous_restoration.h"
|
#include "continuous_restoration.h"
|
||||||
#include "potions/savage_strike.h"
|
#include "savage_strike.h"
|
||||||
#include "potions/echoing_resilience.h"
|
#include "echoing_resilience.h"
|
||||||
#include "potions/tempest_tantrum.h"
|
#include "tempest_tantrum.h"
|
||||||
#include "potions/berzerk_brew.h"
|
#include "berzerk_brew.h"
|
||||||
#include "potions/borrow_life.h"
|
#include "borrow_life.h"
|
||||||
#include "potions/fine_booze.h"
|
#include "fine_booze.h"
|
||||||
#include "potions/ironclad_ward.h"
|
#include "ironclad_ward.h"
|
||||||
|
|
||||||
std::unique_ptr<potion> new_potion(potion_type type, const position &pos) {
|
std::unique_ptr<potion> new_potion(potion_type type, const position &pos) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "restore_health.h"
|
#include "restore_health.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
restore_health::restore_health(const position &pos):
|
restore_health::restore_health(const position &pos):
|
||||||
potion{potion_type::RESTORE_HEALTH, 1, pos} {}
|
potion{potion_type::RESTORE_HEALTH, 1, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __RESTORE_HEALTH_H__
|
#ifndef __RESTORE_HEALTH_H__
|
||||||
#define __RESTORE_HEALTH_H__
|
#define __RESTORE_HEALTH_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class restore_health final: public potion {
|
class restore_health final: public potion {
|
||||||
static const int GAIN_HEALTH = 10;
|
static const int GAIN_HEALTH = 10;
|
@ -88,7 +88,7 @@ const char *LOSE_SCREEN =
|
|||||||
| | | \\. _|_. | . || |\
|
| | | \\. _|_. | . || |\
|
||||||
| | || |\
|
| | || |\
|
||||||
| * | * ** * ** |** ** |\
|
| * | * ** * ** |** ** |\
|
||||||
| \\))...../.,(//,,..,,\\||(,,.,\\\\,.((// |\
|
| \\))....,(//,,..,,\\||(,,.,\\\\,.((// |\
|
||||||
| |\
|
| |\
|
||||||
| Loser! |\
|
| Loser! |\
|
||||||
| |\
|
| |\
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "savage_strike.h"
|
#include "savage_strike.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
savage_strike::savage_strike(const position &pos):
|
savage_strike::savage_strike(const position &pos):
|
||||||
potion{potion_type::SAVAGE_STRIKE, DURATION, pos} {}
|
potion{potion_type::SAVAGE_STRIKE, DURATION, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __SAVAGE_STRIKE_H__
|
#ifndef __SAVAGE_STRIKE_H__
|
||||||
#define __SAVAGE_STRIKE_H__
|
#define __SAVAGE_STRIKE_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class savage_strike final: public potion {
|
class savage_strike final: public potion {
|
||||||
inline static const float ATK_MUL = 1.25f;
|
inline static const float ATK_MUL = 1.25f;
|
@ -1,6 +1,6 @@
|
|||||||
#include "shade.h"
|
#include "shade.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
shade::shade(RNG *rng, const feature enabled_features):
|
shade::shade(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::SHADE} {}
|
player_base{rng, enabled_features, race::SHADE} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __SHADE_H__
|
#ifndef __SHADE_H__
|
||||||
#define __SHADE_H__
|
#define __SHADE_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class shade final: public player_base {
|
class shade final: public player_base {
|
||||||
public:
|
public:
|
@ -1,6 +1,6 @@
|
|||||||
#include "swordsman.h"
|
#include "swordsman.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
swordsman::swordsman(RNG *rng, const feature enabled_features,
|
swordsman::swordsman(RNG *rng, const feature enabled_features,
|
||||||
const position &pos,
|
const position &pos,
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __SWORDSMAN_H__
|
#ifndef __SWORDSMAN_H__
|
||||||
#define __SWORDSMAN_H__
|
#define __SWORDSMAN_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class swordsman final: public enemy_base {
|
class swordsman final: public enemy_base {
|
||||||
public:
|
public:
|
@ -1,6 +1,6 @@
|
|||||||
#include "t_800.h"
|
#include "t_800.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
t_800::t_800(RNG *rng, const feature enabled_features):
|
t_800::t_800(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::RT_800} {}
|
player_base{rng, enabled_features, race::RT_800} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __T_800_H__
|
#ifndef __T_800_H__
|
||||||
#define __T_800_H__
|
#define __T_800_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
class potion;
|
class potion;
|
||||||
|
|
||||||
class t_800 final: public player_base {
|
class t_800 final: public player_base {
|
@ -1,7 +1,7 @@
|
|||||||
#include "tempest_tantrum.h"
|
#include "tempest_tantrum.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
tempest_tantrum::tempest_tantrum(const position &pos):
|
tempest_tantrum::tempest_tantrum(const position &pos):
|
||||||
potion{potion_type::TEMPEST_TANTRUM, DURATION, pos} {}
|
potion{potion_type::TEMPEST_TANTRUM, DURATION, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __TEMPEST_TANTRUM_H__
|
#ifndef __TEMPEST_TANTRUM_H__
|
||||||
#define __TEMPEST_TANTRUM_H__
|
#define __TEMPEST_TANTRUM_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class tempest_tantrum final: public potion {
|
class tempest_tantrum final: public potion {
|
||||||
static const int ATK_MUL = 3;
|
static const int ATK_MUL = 3;
|
@ -1,6 +1,6 @@
|
|||||||
#include "troll.h"
|
#include "troll.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
troll::troll(RNG *rng, const feature enabled_features):
|
troll::troll(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, TROLL} {}
|
player_base{rng, enabled_features, TROLL} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __TROLL_H__
|
#ifndef __TROLL_H__
|
||||||
#define __TROLL_H__
|
#define __TROLL_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class troll final: public player_base {
|
class troll final: public player_base {
|
||||||
static const int GAIN_HP = 5;
|
static const int GAIN_HP = 5;
|
BIN
src/uml-final.pdf
Normal file
BIN
src/uml-final.pdf
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
#include "vampire.h"
|
#include "vampire.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
vampire::vampire(RNG *rng, const feature enabled_features):
|
vampire::vampire(RNG *rng, const feature enabled_features):
|
||||||
player_base{rng, enabled_features, race::VAMPIRE} {};
|
player_base{rng, enabled_features, race::VAMPIRE} {};
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __VAMPIRE_H__
|
#ifndef __VAMPIRE_H__
|
||||||
#define __VAMPIRE_H__
|
#define __VAMPIRE_H__
|
||||||
|
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
class vampire final: public player_base {
|
class vampire final: public player_base {
|
||||||
static const int GAIN_HP = 5;
|
static const int GAIN_HP = 5;
|
@ -1,6 +1,6 @@
|
|||||||
#include "viking.h"
|
#include "viking.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
viking::viking(RNG *rng, const feature enabled_features, const position &pos,
|
viking::viking(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num):
|
const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __VIKING_H__
|
#ifndef __VIKING_H__
|
||||||
#define __VIKING_H__
|
#define __VIKING_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class viking final: public enemy_base {
|
class viking final: public enemy_base {
|
||||||
public:
|
public:
|
@ -1,30 +0,0 @@
|
|||||||
t ea ea se se se ne ea ea ea ea ea ea ea no no no no
|
|
||||||
ea ea ea ea ea ea ea ea ea ea ea ea
|
|
||||||
no no no so so no no
|
|
||||||
a no a no a no a no a no a no a no a no
|
|
||||||
so so so no no no no ea ea ea ea
|
|
||||||
no no a se a se a se a se a se a se a se ea so
|
|
||||||
so so so so ea u ne ea ea ea ea ea u ea
|
|
||||||
ea ea ne
|
|
||||||
a so a so a so a so a so a so a so a so a so a so a so a so a so a so a so a so
|
|
||||||
se ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea se ea ea ea ea u ea
|
|
||||||
ne ne sw ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea
|
|
||||||
u sw we we we we we we we so we we we we we
|
|
||||||
a we a we we we we we we
|
|
||||||
a we a we a we a we a we a we a we a we a we ne
|
|
||||||
we we we we we we we we we we we we we we we we we we
|
|
||||||
no no no no no no we we we we we we we we we we we we we we we we
|
|
||||||
so so so
|
|
||||||
no no
|
|
||||||
we u we
|
|
||||||
ea so we we we we we we
|
|
||||||
no no no no no
|
|
||||||
ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea
|
|
||||||
no no no
|
|
||||||
so ea ea u ea ea a ea a ea a ea a ea a ea a ea a ea a ea a ea
|
|
||||||
so ea no
|
|
||||||
ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea
|
|
||||||
no no no no
|
|
||||||
ea ea ea ea ea ea ea ea ea ea ea ea
|
|
||||||
no no no
|
|
||||||
no so so no no we we
|
|
@ -1,7 +1,7 @@
|
|||||||
#include "witch.h"
|
#include "witch.h"
|
||||||
|
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
#include "../player.h"
|
#include "player.h"
|
||||||
|
|
||||||
witch::witch(RNG *rng, const feature enabled_features, const position &pos,
|
witch::witch(RNG *rng, const feature enabled_features, const position &pos,
|
||||||
const int gen_room_num):
|
const int gen_room_num):
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __WITCH_H__
|
#ifndef __WITCH_H__
|
||||||
#define __WITCH_H__
|
#define __WITCH_H__
|
||||||
|
|
||||||
#include "../enemy.h"
|
#include "enemy.h"
|
||||||
|
|
||||||
class witch final: public enemy_base {
|
class witch final: public enemy_base {
|
||||||
inline static const fraction POTION_RATE = {1, 5};
|
inline static const fraction POTION_RATE = {1, 5};
|
@ -1,7 +1,7 @@
|
|||||||
#include "wound_atk.h"
|
#include "wound_atk.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
wound_atk::wound_atk(const position &pos):
|
wound_atk::wound_atk(const position &pos):
|
||||||
potion{potion_type::WOUND_ATK, -1, pos} {}
|
potion{potion_type::WOUND_ATK, -1, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __WOUND_ATK_H__
|
#ifndef __WOUND_ATK_H__
|
||||||
#define __WOUND_ATK_H__
|
#define __WOUND_ATK_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class wound_atk final: public potion {
|
class wound_atk final: public potion {
|
||||||
static const int WOUND_ATK = 5;
|
static const int WOUND_ATK = 5;
|
@ -1,7 +1,7 @@
|
|||||||
#include "wound_def.h"
|
#include "wound_def.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
wound_def::wound_def(const position &pos):
|
wound_def::wound_def(const position &pos):
|
||||||
potion{potion_type::WOUND_DEF, -1, pos} {}
|
potion{potion_type::WOUND_DEF, -1, pos} {}
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __WOUND_DEF_H__
|
#ifndef __WOUND_DEF_H__
|
||||||
#define __WOUND_DEF_H__
|
#define __WOUND_DEF_H__
|
||||||
|
|
||||||
#include "../potion.h"
|
#include "potion.h"
|
||||||
|
|
||||||
class wound_def final: public potion {
|
class wound_def final: public potion {
|
||||||
static const int WOUND_DEF = 5;
|
static const int WOUND_DEF = 5;
|
Reference in New Issue
Block a user