moved shade into a seperate file
This commit is contained in:
17
src/races.h
17
src/races.h
@ -6,20 +6,9 @@
|
||||
|
||||
#ifndef __RACES_H__
|
||||
#define __RACES_H__
|
||||
#include "characters.h"
|
||||
|
||||
// IMPORTANT: assumes all available positions have excluded chlist
|
||||
|
||||
class shade final: public character {
|
||||
public:
|
||||
shade(const position_list &available_positions); // spawn at a random place
|
||||
virtual result attack(const direction dir,
|
||||
character_list &chlist) override;
|
||||
virtual result get_hit(const enum race &race, const int atk,
|
||||
const float hit_rate) override;
|
||||
};
|
||||
|
||||
|
||||
// TODO: implement enemie movement
|
||||
#include "shade.h"
|
||||
#include "goblin.h"
|
||||
#include "vampire.h"
|
||||
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "races.h"
|
||||
#include "shade.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <math.h>
|
15
src/shade.h
Normal file
15
src/shade.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef __SHADE_H__
|
||||
#define __SHADE_H__
|
||||
|
||||
#include "characters.h"
|
||||
|
||||
class shade final: public character {
|
||||
public:
|
||||
shade(const position_list &available_positions); // spawn at a random place
|
||||
virtual result attack(const direction dir,
|
||||
character_list &chlist) override;
|
||||
virtual result get_hit(const enum race &race, const int atk,
|
||||
const float hit_rate) override;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user