- Moved calc_dmg to characters.h

- put vampire into new source files
This commit is contained in:
a25liang
2024-07-02 20:39:48 -04:00
parent eea910ae33
commit 234f06191a
7 changed files with 74 additions and 15 deletions

View File

@ -6,30 +6,32 @@
#include <vector>
#include "position.h"
// IMPORTANT: added END to the end of all valued enums so that you can
// iterate over them
const int INF = 0x3F3F3F3F;
enum error {none};
// TODO: update result to include subject
enum result {fine, died, go_down, hit, moved};
enum result {fine, died, go_down, hit, moved, miss};
enum stat_name {HP, ATK, DEF, hostile};
const int LAYER_CNT = 4; // TODO: update as you go
enum layer_num {map = 0, objects, characters, shop};
const int RACE_CNT = 2; // TODO: update as you go
const int RACE_CNT = 3; // TODO: update as you go
enum race {unknown = 0, rshade /* TODO: fill out the other races (including enemies) */};
enum race {unknown = 0, rshade , rvampire /* TODO: fill out the other races (including enemies) */};
// TODO: fill out the other races (including enemies)
const int MAX_HP[RACE_CNT] = {0, 125};
const int STARTING_HP[RACE_CNT] = {0, 125};
const int STARTING_ATK[RACE_CNT] = {0, 25};
const int STARTING_DEF[RACE_CNT] = {0, 25};
const int MAX_HP[RACE_CNT] = {0, 125, INF};
const int STARTING_HP[RACE_CNT] = {0, 125, 50};
const int STARTING_ATK[RACE_CNT] = {0, 25, 25};
const int STARTING_DEF[RACE_CNT] = {0, 25, 25};
const char CHARACTER_REP[RACE_CNT] = {'@', 'S'};
const int DIRECTION_CNT = 8;
// IMPORTANT: east is positive for x and SOUTH is positive for y
// initializes all directions to an int