Files
Text-Adventure/Engine/headers/player.h
T

26 lines
519 B
C++

#pragma once
#include <iostream>
#include <math.h>
#include <string>
#include "creature.h"
class Player : Creature {
private:
// Inventory inventory;
// Lets keep the room a loose reference to avoid to many hardcoded details and other info
int curRoomID = -1;
int prevRoomID = -1;
public:
void Init() override;
void LevelUp() override;
void Die() override;
void TakeDamage(int damageType, float damage) override;
float GetHealth() override;
void ChangeRoom(int roomID);
};