New attack function for single character in characters.h, need implementation (example in shade.h)
This commit is contained in:
23
src/game.h
23
src/game.h
@ -7,26 +7,43 @@
|
||||
#include "input.h"
|
||||
#include "rng.h"
|
||||
#include "characters.h"
|
||||
#include "map.h"
|
||||
#include "level.h"
|
||||
#include "log.h"
|
||||
|
||||
class game final {
|
||||
private:
|
||||
feature features;
|
||||
static const size_t MAX_LEVEL_CNT = 50;
|
||||
static const size_t MIN_LEVEL_CNT = 30;
|
||||
static const size_t DEFAULT_MAX_LEVEL = 5;
|
||||
|
||||
const feature enabled_features;
|
||||
|
||||
input *in;
|
||||
display *out;
|
||||
logger *log;
|
||||
RNG *rng;
|
||||
|
||||
std::unique_ptr<character> player;
|
||||
std::vector<std::unique_ptr<level>> levels;
|
||||
|
||||
size_t max_level;
|
||||
size_t curr_level;
|
||||
|
||||
bool the_world;
|
||||
public:
|
||||
game(const feature enabled_features,
|
||||
game(const enum race starting_race,
|
||||
const feature enabled_features,
|
||||
input *new_in,
|
||||
display *new_out,
|
||||
logger *new_log,
|
||||
RNG *new_rng);
|
||||
game_status run();
|
||||
size_t get_curr_level() const;
|
||||
const character *get_player() const;
|
||||
private:
|
||||
result player_moves(game_command cmd);
|
||||
void new_level();
|
||||
void move_enemies();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user